From 0fd6f59bbb27f03c2b58c2a45eb685dc9b5a2404 Mon Sep 17 00:00:00 2001 From: Chris Spencer Date: Tue, 11 Feb 2025 15:42:55 +0000 Subject: [PATCH] [client] egl: fix desktop render dimensions check Code now matches the error message. --- client/renderers/EGL/desktop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/renderers/EGL/desktop.c b/client/renderers/EGL/desktop.c index 6fe6ac06..16c0867a 100644 --- a/client/renderers/EGL/desktop.c +++ b/client/renderers/EGL/desktop.c @@ -454,7 +454,7 @@ bool egl_desktopRender(EGL_Desktop * desktop, unsigned int outputWidth, dma = desktop->useDMA; } - if (unlikely(outputWidth == 0 && outputHeight == 0)) + if (unlikely(outputWidth == 0 || outputHeight == 0)) DEBUG_FATAL("outputWidth || outputHeight == 0"); enum EGL_TexStatus status;