Browse Source

Support Internet Explorer.

It claims to have WebGL 0.94.
pull/107/head
Vladimír Vondruš 11 years ago
parent
commit
8648d93324
  1. 4
      src/Magnum/Context.cpp

4
src/Magnum/Context.cpp

@ -404,7 +404,9 @@ Context::Context(void functionLoader()) {
#ifndef MAGNUM_TARGET_GLES
if(version.compare(0, 3, "2.1") == 0)
#elif defined(MAGNUM_TARGET_WEBGL)
if(version.find("WebGL 1") != std::string::npos)
/* Internet Explorer currently has 0.94 */
if(version.find("WebGL 1") != std::string::npos ||
version.find("WebGL 0") != std::string::npos)
#else
if(version.find("OpenGL ES 2.0") != std::string::npos ||
/* It is possible to use Magnum compiled for ES2 on ES3 contexts */

Loading…
Cancel
Save