mirror of
https://github.com/libretro/RetroArch
synced 2025-04-24 06:02:36 +00:00
(hotfix) Don't poll vendor specific 'patch' version
This commit is contained in:
parent
e7f5c62581
commit
d12dba6db4
@ -90,19 +90,18 @@ static uint32_t gl_core_get_cross_compiler_target_version()
|
|||||||
const char *version = (const char*)glGetString(GL_VERSION);
|
const char *version = (const char*)glGetString(GL_VERSION);
|
||||||
unsigned major = 0;
|
unsigned major = 0;
|
||||||
unsigned minor = 0;
|
unsigned minor = 0;
|
||||||
unsigned patch = 0;
|
|
||||||
|
|
||||||
#ifdef HAVE_OPENGLES3
|
#ifdef HAVE_OPENGLES3
|
||||||
if (!version || sscanf(version, "OpenGL ES %u.%u.%u", &major, &minor, &patch) < 2)
|
if (!version || sscanf(version, "OpenGL ES %u.%u", &major, &minor) != 2)
|
||||||
return 300u;
|
return 300u;
|
||||||
#else
|
#else
|
||||||
if (!version || sscanf(version, "%u.%u.%u", &major, &minor, &patch) < 2)
|
if (!version || sscanf(version, "%u.%u", &major, &minor) != 2)
|
||||||
return 150u;
|
return 150u;
|
||||||
#endif
|
#endif
|
||||||
if (major == 3u && minor == 2u)
|
if (major == 3u && minor == 2u)
|
||||||
return 150u;
|
return 150u;
|
||||||
|
|
||||||
return 100u * major + 10u * minor + patch;
|
return 100u * major + 10u * minor;
|
||||||
}
|
}
|
||||||
|
|
||||||
GLuint gl_core_cross_compile_program(
|
GLuint gl_core_cross_compile_program(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user