Skip to content

Commit a7fab4a

Browse files
Merge pull request #17833 from white-axe/emscripten-argb8
Fix feature test for `GL_CAPS_ARGB8` in Emscripten builds
2 parents 633ee29 + ebd79bf commit a7fab4a

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

libretro-common/gfx/gl_capabilities.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,11 +190,15 @@ bool gl_check_capability(enum gl_capability_enum enum_idx)
190190
break;
191191
#endif
192192
case GL_CAPS_ARGB8:
193-
#ifdef HAVE_OPENGLES
193+
#if defined(HAVE_OPENGLES) && !defined(EMSCRIPTEN)
194194
if (gl_query_extension("OES_rgb8_rgba8")
195195
|| gl_query_extension("ARM_rgba8")
196196
|| major >= 3)
197197
return true;
198+
#elif defined(HAVE_OPENGLES) && defined(EMSCRIPTEN)
199+
if (gl_query_extension("EXT_sRGB")
200+
|| major >= 3)
201+
return true;
198202
#else
199203
/* TODO/FIXME - implement this for non-GLES? */
200204
#endif

0 commit comments

Comments
 (0)