wayland/opengl: fix o->egl_window_native warning

This commit is contained in:
IoIxD
2026-01-04 11:13:59 -07:00
parent 933b5198c7
commit 8cdffa12ae

View File

@@ -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;
}