|
|
|
@ -218,8 +218,8 @@ WindowlessEglContext::WindowlessEglContext(const Configuration& configuration, G |
|
|
|
const /* Is modified below to work around a SwiftShader limitation */ |
|
|
|
const /* Is modified below to work around a SwiftShader limitation */ |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
EGLint attributes[] = { |
|
|
|
EGLint attributes[] = { |
|
|
|
#ifdef MAGNUM_TARGET_GLES |
|
|
|
|
|
|
|
EGL_CONTEXT_CLIENT_VERSION, |
|
|
|
EGL_CONTEXT_CLIENT_VERSION, |
|
|
|
|
|
|
|
#ifdef MAGNUM_TARGET_GLES |
|
|
|
#if defined(MAGNUM_TARGET_GLES2) || (defined(CORRADE_TARGET_EMSCRIPTEN) && __EMSCRIPTEN_major__*10000 + __EMSCRIPTEN_minor__*100 + __EMSCRIPTEN_tiny__ < 13824) |
|
|
|
#if defined(MAGNUM_TARGET_GLES2) || (defined(CORRADE_TARGET_EMSCRIPTEN) && __EMSCRIPTEN_major__*10000 + __EMSCRIPTEN_minor__*100 + __EMSCRIPTEN_tiny__ < 13824) |
|
|
|
/* Emscripten before 1.38.24 doesn't know about version 3 for WebGL
|
|
|
|
/* Emscripten before 1.38.24 doesn't know about version 3 for WebGL
|
|
|
|
2 and the whole thing is controlled by -s USE_WEBGL2=1 flag |
|
|
|
2 and the whole thing is controlled by -s USE_WEBGL2=1 flag |
|
|
|
@ -231,7 +231,9 @@ WindowlessEglContext::WindowlessEglContext(const Configuration& configuration, G |
|
|
|
#else |
|
|
|
#else |
|
|
|
#error unsupported OpenGL ES version |
|
|
|
#error unsupported OpenGL ES version |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
#else |
|
|
|
|
|
|
|
3, |
|
|
|
|
|
|
|
#endif |
|
|
|
#ifndef MAGNUM_TARGET_WEBGL |
|
|
|
#ifndef MAGNUM_TARGET_WEBGL |
|
|
|
/* Needs to be last because we're zeroing this out for SwiftShader (see
|
|
|
|
/* Needs to be last because we're zeroing this out for SwiftShader (see
|
|
|
|
below) */ |
|
|
|
below) */ |
|
|
|
|