diff --git a/src/Magnum/Context.cpp b/src/Magnum/Context.cpp index c11a579b0..100d408b1 100644 --- a/src/Magnum/Context.cpp +++ b/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