diff --git a/cogl/winsys/cogl-winsys-egl-wayland.c b/cogl/winsys/cogl-winsys-egl-wayland.c index 8c230ee3c..3b6961112 100644 --- a/cogl/winsys/cogl-winsys-egl-wayland.c +++ b/cogl/winsys/cogl-winsys-egl-wayland.c @@ -637,7 +637,7 @@ cogl_wayland_onscreen_get_surface (CoglOnscreen *onscreen) CoglFramebuffer *fb; fb = COGL_FRAMEBUFFER (onscreen); - if (fb->allocated && !onscreen->foreign_surface) + if (fb->allocated) { CoglOnscreenEGL *egl_onscreen = onscreen->winsys; CoglOnscreenWayland *wayland_onscreen = egl_onscreen->platform;