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.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/video/out/opengl/context_wayland.c b/video/out/opengl/context_wayland.c
index 3ce42ad01b..22c18d8290 100644
--- a/video/out/opengl/context_wayland.c
+++ b/video/out/opengl/context_wayland.c
@@ -165,8 +165,10 @@ static void wayland_egl_wait_events(struct ra_ctx *ctx, int64_t until_time_us)
static bool wayland_egl_init(struct ra_ctx *ctx)
{
- if (!vo_wayland_init(ctx->vo))
+ if (!vo_wayland_init(ctx->vo)) {
+ vo_wayland_uninit(ctx->vo);
return false;
+ }
return egl_create_context(ctx);
}