mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-11 01:48:09 +00:00
[client] egl: fix uninitialized use of variables
This commit is contained in:
@@ -479,8 +479,12 @@ bool egl_desktopRender(EGL_Desktop * desktop, unsigned int outputWidth,
|
|||||||
EGL_Texture * texture = egl_postProcessGetOutput(desktop->pp,
|
EGL_Texture * texture = egl_postProcessGetOutput(desktop->pp,
|
||||||
&finalSizeX, &finalSizeY);
|
&finalSizeX, &finalSizeY);
|
||||||
|
|
||||||
if (!texture)
|
if (unlikely(!texture))
|
||||||
|
{
|
||||||
texture = tex;
|
texture = tex;
|
||||||
|
finalSizeX = width;
|
||||||
|
finalSizeY = height;
|
||||||
|
}
|
||||||
|
|
||||||
glBindFramebuffer(GL_FRAMEBUFFER, 0);
|
glBindFramebuffer(GL_FRAMEBUFFER, 0);
|
||||||
egl_resetViewport(desktop->egl);
|
egl_resetViewport(desktop->egl);
|
||||||
|
Reference in New Issue
Block a user