We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 633ee29 + ebd79bf commit a7fab4aCopy full SHA for a7fab4a
1 file changed
libretro-common/gfx/gl_capabilities.c
@@ -190,11 +190,15 @@ bool gl_check_capability(enum gl_capability_enum enum_idx)
190
break;
191
#endif
192
case GL_CAPS_ARGB8:
193
-#ifdef HAVE_OPENGLES
+#if defined(HAVE_OPENGLES) && !defined(EMSCRIPTEN)
194
if (gl_query_extension("OES_rgb8_rgba8")
195
|| gl_query_extension("ARM_rgba8")
196
|| major >= 3)
197
return true;
198
+#elif defined(HAVE_OPENGLES) && defined(EMSCRIPTEN)
199
+ if (gl_query_extension("EXT_sRGB")
200
+ || major >= 3)
201
+ return true;
202
#else
203
/* TODO/FIXME - implement this for non-GLES? */
204
0 commit comments