mirror of
https://github.com/libretro/RetroArch
synced 2025-03-01 16:13:40 +00:00
Add workaround for ATI Catalyst's lack of GL_RGB565 support.
This commit is contained in:
parent
bee70f8318
commit
f2a8a73322
8
gfx/gl.c
8
gfx/gl.c
@ -1676,7 +1676,13 @@ static bool resolve_extensions(gl_t *gl)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// GL_RGB565 internal format support.
|
// GL_RGB565 internal format support.
|
||||||
gl->have_es2_compat = gl_query_extension(gl, "ARB_ES2_compatibility");
|
// Even though es2 support is claimed, the format is not supported on older ATI catalyst drivers.
|
||||||
|
// The speed gain from using GL_RGB565 is worth adding some workarounds for.
|
||||||
|
const char *vendor = (const char*)glGetString(GL_VENDOR);
|
||||||
|
if (!vendor || !strstr(vendor, "ATI"))
|
||||||
|
gl->have_es2_compat = gl_query_extension(gl, "ARB_ES2_compatibility");
|
||||||
|
else
|
||||||
|
RARCH_LOG("[GL]: ATI card detected, skipping check for GL_RGB565 support.\n");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_GL_SYNC
|
#ifdef HAVE_GL_SYNC
|
||||||
|
Loading…
x
Reference in New Issue
Block a user