diff --git a/src/unix/glegl.cpp b/src/unix/glegl.cpp index 79e8d991c3..2ab88a143b 100644 --- a/src/unix/glegl.cpp +++ b/src/unix/glegl.cpp @@ -577,17 +577,13 @@ void wxGLCanvasEGL::CreateWaylandSubsurface() m_wlSubsurface = wl_subcompositor_get_subsurface(m_wlSubcompositor, m_wlSurface, surface); + wxCHECK_RET( m_wlSubsurface, "Unable to get EGL subsurface" ); + wl_subsurface_set_desync(m_wlSubsurface); wxEGLUpdatePosition(this); m_wlFrameCallbackHandler = wl_surface_frame(surface); wl_callback_add_listener(m_wlFrameCallbackHandler, &wl_frame_listener, this); - - if ( m_surface == EGL_NO_SURFACE ) - { - wxFAIL_MSG("Unable to create EGL surface"); - return; - } #endif }