summaryrefslogtreecommitdiffstats
path: root/video/out/gl_x11egl.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-12-19 01:03:08 +0100
committerwm4 <wm4@nowhere>2014-12-19 01:21:19 +0100
commita0051b9da28fb67cebae1fef322603ddb8f619f8 (patch)
tree206133468f186beb262e4a35d3462f06882df465 /video/out/gl_x11egl.c
parentfe35130ba9079c09c74a5f5334584f1ccca15e52 (diff)
downloadmpv-a0051b9da28fb67cebae1fef322603ddb8f619f8.tar.bz2
mpv-a0051b9da28fb67cebae1fef322603ddb8f619f8.tar.xz
vo_opengl: add GLES 2 support
Rather basic support. Almost nothing works, and even if it does, it's bound to be inefficient (due to texture upload). This was tested with the nVidia desktop binary drivers, which provide GLES 2 support only. However, nVidia is not known to be very strict about OpenGL, and the driver is very new too, so the vo_opengl code will have bugs too.
Diffstat (limited to 'video/out/gl_x11egl.c')
-rw-r--r--video/out/gl_x11egl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/gl_x11egl.c b/video/out/gl_x11egl.c
index 8f2a5e4ffa..2bd4def4df 100644
--- a/video/out/gl_x11egl.c
+++ b/video/out/gl_x11egl.c
@@ -68,7 +68,7 @@ static bool create_context_egl(MPGLContext *ctx, EGLConfig config,
EGLint context_attributes[] = {
EGL_CONTEXT_MAJOR_VERSION_KHR,
- es ? 3 : MPGL_VER_GET_MAJOR(ctx->requested_gl_version),
+ es ? 2 : MPGL_VER_GET_MAJOR(ctx->requested_gl_version),
EGL_NONE
};