summaryrefslogtreecommitdiffstats
path: root/video/out/gl_wayland.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/gl_wayland.c')
-rw-r--r--video/out/gl_wayland.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/video/out/gl_wayland.c b/video/out/gl_wayland.c
index 45c58cf42a..14ef84cf92 100644
--- a/video/out/gl_wayland.c
+++ b/video/out/gl_wayland.c
@@ -50,6 +50,9 @@ static void egl_resize_func(struct vo_wayland_state *wl,
int32_t x, y;
float temp_aspect = width / (float) MPMAX(height, 1);
+ if (!ctx->egl_window)
+ return;
+
/* get the real window size of the window */
wl_egl_window_get_attached_size(ctx->egl_window,
&w->width,