From 649e337f4d5efce70211de22b6573230f5b77f0a Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 17 Dec 2014 22:39:04 +0100 Subject: 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. --- video/out/gl_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video/out') diff --git a/video/out/gl_common.c b/video/out/gl_common.c index 2af96cab5a..a8f06f7b6b 100644 --- a/video/out/gl_common.c +++ b/video/out/gl_common.c @@ -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); -- cgit v1.2.3