mirror of
https://github.com/libretro/RetroArch.git
synced 2024-12-04 22:46:46 +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);
|
||||
unsigned major = 0;
|
||||
unsigned minor = 0;
|
||||
unsigned patch = 0;
|
||||
|
||||
#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;
|
||||
#else
|
||||
if (!version || sscanf(version, "%u.%u.%u", &major, &minor, &patch) < 2)
|
||||
if (!version || sscanf(version, "%u.%u", &major, &minor) != 2)
|
||||
return 150u;
|
||||
#endif
|
||||
if (major == 3u && minor == 2u)
|
||||
return 150u;
|
||||
|
||||
return 100u * major + 10u * minor + patch;
|
||||
return 100u * major + 10u * minor;
|
||||
}
|
||||
|
||||
GLuint gl_core_cross_compile_program(
|
||||
|
Loading…
Reference in New Issue
Block a user