Check GL_RENDERER for ATI as well.

This commit is contained in:
Themaister 2014-01-08 18:09:17 +01:00
parent 1eaee0bbea
commit 33d50e2010

View File

@ -1679,10 +1679,11 @@ static bool resolve_extensions(gl_t *gl)
// 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
const char *renderer = (const char*)glGetString(GL_RENDERER);
if (vendor && renderer && (strstr(vendor, "ATI") || strstr(renderer, "ATI")))
RARCH_LOG("[GL]: ATI card detected, skipping check for GL_RGB565 support.\n");
else
gl->have_es2_compat = gl_query_extension(gl, "ARB_ES2_compatibility");
#endif
#ifdef HAVE_GL_SYNC