2
0
Эх сурвалжийг харах

webgl: Fix incorrect WebGL 1/2 detection

Emscripten masquerades as OpenGL ES already, so no need to add 1 to the version number
rdb 5 жил өмнө
parent
commit
54715597a8

+ 2 - 2
panda/src/glstuff/glGraphicsStateGuardian_src.I

@@ -244,12 +244,12 @@ is_at_least_gles_version(int major_version, int minor_version) const {
 #elif defined(OPENGLES_1)
   return major_version == 1 && _gl_version_minor >= minor_version;
 
-#elif defined(__EMSCRIPTEN__)
+/*#elif defined(__EMSCRIPTEN__)
   // We're running WebGL.  WebGL 1 is based on OpenGL ES 2, and
   // WebGL 2 is based on OpenGL ES 3.  So add one to the major version.
   // There don't appear to be minor WebGL versions (yet).
   return (_gl_version_major + 1 >= major_version);
-
+*/
 #else
   if (_gl_version_major < major_version) {
     return false;