diff options
author | Alexander Preisinger <alexander.preisinger@gmail.com> | 2013-07-20 17:21:51 +0200 |
---|---|---|
committer | Alexander Preisinger <alexander.preisinger@gmail.com> | 2013-07-20 17:21:51 +0200 |
commit | ccc4512e1d8aaaece305df23d1fbad626db6f985 (patch) | |
tree | a6ad0bf5b363042319022152da63f8994b0b51c8 /video | |
parent | 7088fe3fec99ed60d73e7caded387165a67ab89d (diff) | |
parent | 906315f075994387b8724a3b2a87bad45b86f6f9 (diff) | |
download | mpv-ccc4512e1d8aaaece305df23d1fbad626db6f985.tar.bz2 mpv-ccc4512e1d8aaaece305df23d1fbad626db6f985.tar.xz |
Merge remote-tracking branch 'michaelforney/master'
Diffstat (limited to 'video')
-rw-r--r-- | video/out/gl_wayland.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/video/out/gl_wayland.c b/video/out/gl_wayland.c index ad97d0b27e..1b5a21ec43 100644 --- a/video/out/gl_wayland.c +++ b/video/out/gl_wayland.c @@ -154,8 +154,17 @@ static bool egl_create_context(struct vo_wayland_state *wl, egl_ctx->egl.conf, EGL_NO_CONTEXT, context_attribs); - if (!egl_ctx->egl.ctx) - return false; + if (!egl_ctx->egl.ctx) { + /* fallback to any GL version */ + context_attribs[0] = EGL_NONE; + egl_ctx->egl.ctx = eglCreateContext(egl_ctx->egl.dpy, + egl_ctx->egl.conf, + EGL_NO_CONTEXT, + context_attribs); + + if (!egl_ctx->egl.ctx) + return false; + } eglMakeCurrent(egl_ctx->egl.dpy, NULL, NULL, egl_ctx->egl.ctx); |