From 0d8a6c698491a0b968fca12eeeffa6fedfa5bac6 Mon Sep 17 00:00:00 2001 From: Dudemanguy Date: Sat, 16 Nov 2019 14:23:07 -0600 Subject: 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. --- video/out/opengl/context_wayland.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'video') 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) -- cgit v1.2.3