diff --git a/client/renderers/EGL/desktop.c b/client/renderers/EGL/desktop.c index 64015bc4..58f9ef3a 100644 --- a/client/renderers/EGL/desktop.c +++ b/client/renderers/EGL/desktop.c @@ -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);