From 8648d93324a1d48addd7560695747ca6e607c49c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 29 May 2015 23:35:43 +0200 Subject: [PATCH] Support Internet Explorer. It claims to have WebGL 0.94. --- src/Magnum/Context.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Magnum/Context.cpp b/src/Magnum/Context.cpp index 1d6c4f0ed..a856c8587 100644 --- a/src/Magnum/Context.cpp +++ b/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 */