summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2019-11-16 14:23:07 -0600
committerDudemanguy <random342@airmail.cc>2019-11-16 14:23:07 -0600
commit0d8a6c698491a0b968fca12eeeffa6fedfa5bac6 (patch)
treeac9c74749ded0fbe4345a08a3ee9f42f5c9693db
parentaacc1942fb5fb44a0ea92e11e2c18fd24f29c097 (diff)
downloadmpv-0d8a6c698491a0b968fca12eeeffa6fedfa5bac6.tar.bz2
mpv-0d8a6c698491a0b968fca12eeeffa6fedfa5bac6.tar.xz
wayland: use eglGetPlatformDisplay()
See aacc194. The same logic all applies to Wayland. In fact, we already require EGL 1.5 for wayland anyway, so it's better to do it right.
-rw-r--r--video/out/opengl/context_wayland.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/video/out/opengl/context_wayland.c b/video/out/opengl/context_wayland.c
index ea31f6337c..2dd8cdec29 100644
--- a/video/out/opengl/context_wayland.c
+++ b/video/out/opengl/context_wayland.c
@@ -163,7 +163,8 @@ static bool egl_create_context(struct ra_ctx *ctx)
struct priv *p = ctx->priv = talloc_zero(ctx, struct priv);
struct vo_wayland_state *wl = ctx->vo->wl;
- if (!(p->egl_display = eglGetDisplay(wl->display)))
+ if (!(p->egl_display = eglGetPlatformDisplay(EGL_PLATFORM_WAYLAND_KHR,
+ wl->display, NULL)))
return false;
if (eglInitialize(p->egl_display, NULL, NULL) != EGL_TRUE)