Skip to content

Commit 0fd6f59

Browse files
spencercwgnif
authored andcommitted
[client] egl: fix desktop render dimensions check
Code now matches the error message.
1 parent 661efd1 commit 0fd6f59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/renderers/EGL/desktop.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ bool egl_desktopRender(EGL_Desktop * desktop, unsigned int outputWidth,
454454
dma = desktop->useDMA;
455455
}
456456

457-
if (unlikely(outputWidth == 0 && outputHeight == 0))
457+
if (unlikely(outputWidth == 0 || outputHeight == 0))
458458
DEBUG_FATAL("outputWidth || outputHeight == 0");
459459

460460
enum EGL_TexStatus status;

0 commit comments

Comments
 (0)