Browse Source

Fix Context initialization in WebGL.

Broken since 41235c20eb which was three
weeks ago. I am SO thoroughly testing all the stuff, right?
pull/51/head
Vladimír Vondruš 12 years ago
parent
commit
e1105300cb
  1. 2
      src/Magnum/Context.cpp

2
src/Magnum/Context.cpp

@ -313,6 +313,8 @@ Context::Context() {
const std::string version = versionString();
#ifndef MAGNUM_TARGET_GLES
if(version.compare(0, 4, "2.1 ") == 0)
#elif defined(CORRADE_TARGET_EMSCRIPTEN)
if(version.find("WebGL 1") != std::string::npos)
#else
if(version.find("OpenGL ES 2.0") != std::string::npos)
#endif

Loading…
Cancel
Save