summaryrefslogtreecommitdiffstats
path: root/video/out/gl_x11egl.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-05-14 13:07:00 +0200
committerwm4 <wm4@nowhere>2015-05-14 13:07:00 +0200
commitbad932e8ed4b5af75ad2a4619d2331ad1a530900 (patch)
tree822b38faaefb114a6c3b9190608ea8487ee68d6f /video/out/gl_x11egl.c
parentfa39dadb059bb81839b6e97e74e5b83b7c0a2a0f (diff)
downloadmpv-bad932e8ed4b5af75ad2a4619d2331ad1a530900.tar.bz2
mpv-bad932e8ed4b5af75ad2a4619d2331ad1a530900.tar.xz
vo_opengl: hardcode rquested GL version in backends
The requested version field didn't make much sense anymore, and was even partially ignored by some backends.
Diffstat (limited to 'video/out/gl_x11egl.c')
-rw-r--r--video/out/gl_x11egl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/gl_x11egl.c b/video/out/gl_x11egl.c
index bfb88c3110..9db0bee0a9 100644
--- a/video/out/gl_x11egl.c
+++ b/video/out/gl_x11egl.c
@@ -67,8 +67,8 @@ static bool create_context_egl(MPGLContext *ctx, EGLConfig config,
struct priv *p = ctx->priv;
EGLint context_attributes[] = {
- EGL_CONTEXT_CLIENT_VERSION, // aka EGL_CONTEXT_MAJOR_VERSION_KHR
- es ? 2 : MPGL_VER_GET_MAJOR(ctx->requested_gl_version),
+ // aka EGL_CONTEXT_MAJOR_VERSION_KHR
+ EGL_CONTEXT_CLIENT_VERSION, es ? 2 : 3,
EGL_NONE
};