# HG changeset patch # User Sebastien Jodogne # Date 1573743229 -3600 # Node ID bc27c199eefe9629dfa2be88cc9775bce2cff219 # Parent 5035354b136919374102f21c50762aedc3e640ae qt diff -r 5035354b1369 -r bc27c199eefe Framework/OpenGL/OpenGLIncludes.h --- a/Framework/OpenGL/OpenGLIncludes.h Tue Nov 12 20:03:23 2019 +0100 +++ b/Framework/OpenGL/OpenGLIncludes.h Thu Nov 14 15:53:49 2019 +0100 @@ -32,6 +32,8 @@ #if defined(__APPLE__) # include # include +#elif defined(QT_VERSION_MAJOR) && (QT_VERSION >= 5) +// Qt5 takes care of the inclusions #elif defined(_WIN32) // On Windows, use the compatibility headers provided by glew # include diff -r 5035354b1369 -r bc27c199eefe Framework/OpenGL/SdlOpenGLContext.cpp --- a/Framework/OpenGL/SdlOpenGLContext.cpp Tue Nov 12 20:03:23 2019 +0100 +++ b/Framework/OpenGL/SdlOpenGLContext.cpp Thu Nov 14 15:53:49 2019 +0100 @@ -68,6 +68,7 @@ GLenum err = glewInit(); if (GLEW_OK != err) { + LOG(ERROR) << glewGetErrorString(err); throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError, "Cannot initialize glew"); }