[client] egl: fix uninitialized use of variables
This commit is contained in:
1 parent
f07dd827ae
commit
eec9aa3ae3
1 file changed
+6
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user