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:
wm4 2014-12-17 22:39:04 +01:00
parent 592aa9c70c
commit 649e337f4d
1 changed files with 1 additions and 1 deletions

View File

@ -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);