summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/context_wayland.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/opengl/context_wayland.c')
-rw-r--r--video/out/opengl/context_wayland.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/video/out/opengl/context_wayland.c b/video/out/opengl/context_wayland.c
index 2dd8cdec29..8af5c7b9a6 100644
--- a/video/out/opengl/context_wayland.c
+++ b/video/out/opengl/context_wayland.c
@@ -28,6 +28,8 @@
// Generated from presentation-time.xml
#include "video/out/wayland/presentation-time.h"
+#define EGL_PLATFORM_WAYLAND_EXT 0x31D8
+
struct priv {
GL gl;
EGLDisplay egl_display;
@@ -163,8 +165,9 @@ 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 = eglGetPlatformDisplay(EGL_PLATFORM_WAYLAND_KHR,
- wl->display, NULL)))
+ if (!(p->egl_display = mpegl_get_display(EGL_PLATFORM_WAYLAND_EXT,
+ "EGL_EXT_platform_wayland",
+ wl->display)))
return false;
if (eglInitialize(p->egl_display, NULL, NULL) != EGL_TRUE)