changeset 612:ba72bffceb7d

Removed "core" from shader version spec + removed useless code from StoneInitialize
author Benjamin Golinvaux <bgo@osimis.io>
date Tue, 30 Apr 2019 16:18:46 +0200
parents e3f21a265be5
children 412a2d01a189
files Framework/Scene2D/Internals/OpenGLShaderVersionDirective.h Framework/StoneInitialization.cpp
diffstat 2 files changed, 1 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/Framework/Scene2D/Internals/OpenGLShaderVersionDirective.h	Tue Apr 30 16:07:48 2019 +0200
+++ b/Framework/Scene2D/Internals/OpenGLShaderVersionDirective.h	Tue Apr 30 16:18:46 2019 +0200
@@ -1,3 +1,3 @@
 #pragma once
 
-#define ORTHANC_STONE_OPENGL_SHADER_VERSION_DIRECTIVE "#version 110 core     \n"
\ No newline at end of file
+#define ORTHANC_STONE_OPENGL_SHADER_VERSION_DIRECTIVE "#version 110      \n"
\ No newline at end of file
--- a/Framework/StoneInitialization.cpp	Tue Apr 30 16:07:48 2019 +0200
+++ b/Framework/StoneInitialization.cpp	Tue Apr 30 16:18:46 2019 +0200
@@ -51,15 +51,6 @@
     {
       const char* error =
         reinterpret_cast<const char*>(glewGetErrorString(err));
-      if (strcmp(error, "Missing GL version") != 0)
-      {
-        std::stringstream msg;
-        msg << "Error while initializing OpenGL through GLEW: " << error;
-        throw Orthanc::OrthancException(
-          Orthanc::ErrorCode_InternalError,msg.str());
-      }
-    }
-    {
       std::stringstream message;
       message << "Using GLEW version " << reinterpret_cast<const char*>(
         glewGetString(GLEW_VERSION));