comparison Framework/StoneInitialization.cpp @ 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
comparison
equal deleted inserted replaced
611:e3f21a265be5 612:ba72bffceb7d
49 GLenum err = glewInit(); 49 GLenum err = glewInit();
50 if (GLEW_OK != err) 50 if (GLEW_OK != err)
51 { 51 {
52 const char* error = 52 const char* error =
53 reinterpret_cast<const char*>(glewGetErrorString(err)); 53 reinterpret_cast<const char*>(glewGetErrorString(err));
54 if (strcmp(error, "Missing GL version") != 0)
55 {
56 std::stringstream msg;
57 msg << "Error while initializing OpenGL through GLEW: " << error;
58 throw Orthanc::OrthancException(
59 Orthanc::ErrorCode_InternalError,msg.str());
60 }
61 }
62 {
63 std::stringstream message; 54 std::stringstream message;
64 message << "Using GLEW version " << reinterpret_cast<const char*>( 55 message << "Using GLEW version " << reinterpret_cast<const char*>(
65 glewGetString(GLEW_VERSION)); 56 glewGetString(GLEW_VERSION));
66 LOG(INFO) << "Using GLEW version " << message.str(); 57 LOG(INFO) << "Using GLEW version " << message.str();
67 } 58 }