From ec1ac0879a09a182ed5e1c087900a5fe9fbb05ca Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 3 Apr 2026 23:54:26 +0200 Subject: [PATCH] Compare EGL surface with EGL_NO_SURFACE for consistency No real changes because EGL_NO_SURFACE is just 0 anyhow, but write the check for the surface being valid in a way consistent with all the other ones in this file. --- src/unix/glegl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unix/glegl.cpp b/src/unix/glegl.cpp index 8ec9bab1b1..a042885aee 100644 --- a/src/unix/glegl.cpp +++ b/src/unix/glegl.cpp @@ -700,7 +700,7 @@ wxGLCanvasEGL::~wxGLCanvasEGL() } #endif // GDK_WINDOWING_WAYLAND - if ( m_surface ) + if ( m_surface != EGL_NO_SURFACE ) eglDestroySurface(m_display, m_surface); #ifdef GDK_WINDOWING_WAYLAND DestroyWaylandSubsurface();