Browse Source

Fix version string comparison on desktop GL.

I should really read the specs more carefully, this seems to be a very
dark corner of desktop/ES compatibility.
pull/51/head
Vladimír Vondruš 12 years ago
parent
commit
8a865e10a6
  1. 2
      src/Magnum/Context.cpp

2
src/Magnum/Context.cpp

@ -320,7 +320,7 @@ Context::Context() {
const std::string version = versionString();
#ifndef MAGNUM_TARGET_GLES
if(version.find("OpenGL 2.1") != std::string::npos)
if(version.compare(0, 4, "2.1 ") == 0)
#else
if(version.find("OpenGL ES 2.0") != std::string::npos)
#endif

Loading…
Cancel
Save