From 8cdffa12ae8e070fec70560ceed974be0c4f137c Mon Sep 17 00:00:00 2001 From: IoIxD Date: Sun, 4 Jan 2026 11:13:59 -0700 Subject: [PATCH] wayland/opengl: fix o->egl_window_native warning --- src/widget/opengl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widget/opengl.c b/src/widget/opengl.c index 578b881..0dedd7f 100644 --- a/src/widget/opengl.c +++ b/src/widget/opengl.c @@ -174,7 +174,7 @@ static int create(MwWidget handle) { o->egl_window_native = (EGLNativeWindowType)wl_egl_window_create(handle->lowlevel->wayland.framebuffer.surface, handle->lowlevel->wayland.ww, handle->lowlevel->wayland.wh); - if(o->egl_window_native == EGL_NO_SURFACE) { + if(!o->egl_window_native) { printf("ERROR: wl_egl_window_create, EGL_NO_SURFACE\n"); return MwFALSE; }