[client] egl: fix uninitialized use of variables

This commit is contained in:
Geoffrey McRae
2025-09-08 11:00:06 +10:00
parent f07dd827ae
commit eec9aa3ae3

View File

@@ -479,8 +479,12 @@ bool egl_desktopRender(EGL_Desktop * desktop, unsigned int outputWidth,
EGL_Texture * texture = egl_postProcessGetOutput(desktop->pp,
&finalSizeX, &finalSizeY);
if (!texture)
texture = tex;
if (unlikely(!texture))
{
texture = tex;
finalSizeX = width;
finalSizeY = height;
}
glBindFramebuffer(GL_FRAMEBUFFER, 0);
egl_resetViewport(desktop->egl);