mirror of https://github.com/mpv-player/mpv
vo_opengl: don't assume legacy OpenGL is available with GLES
OpenGL 3.0 has the weird situation that it's "hard" to detect whether legacy GL is really present. Since we pretend that we have OpenGL 3.0 if we use GLES, it was assuming legacy GL is available.
This commit is contained in:
parent
592aa9c70c
commit
649e337f4d
|
@ -541,7 +541,7 @@ void mpgl_load_functions2(GL *gl, void *(*get_fn)(void *ctx, const char *n),
|
|||
|
||||
// This version doesn't have GL_ARB_compatibility yet, and always
|
||||
// includes legacy (except with CONTEXT_FORWARD_COMPATIBLE_BIT_ARB).
|
||||
if (gl->version == MPGL_VER(3, 0))
|
||||
if (gl->version == MPGL_VER(3, 0) && !gl->es)
|
||||
has_legacy = true;
|
||||
} else {
|
||||
const char *ext = (char*)gl->GetString(GL_EXTENSIONS);
|
||||
|
|
Loading…
Reference in New Issue