|
|
|
|
@ -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 */ |
|
|
|
|
|