mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-27 05:40:51 +08:00
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.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user