mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-21 21:17:19 +00:00
[client] egl: skip downscale filter setup when not enabled
Since this->prepared will never be set to true unless the filter is enabled, this results in the framebuffer setup being done every frame for no reason, causing a lot of texture reallocations.
This commit is contained in:
parent
c9e8de334a
commit
74418106de
@ -333,6 +333,9 @@ static bool egl_filterDownscaleSetup(EGL_Filter * filter,
|
||||
width = (float)width / this->pixelSize;
|
||||
height = (float)height / this->pixelSize;
|
||||
|
||||
if (!this->enable)
|
||||
return false;
|
||||
|
||||
if (this->prepared &&
|
||||
pixFmt == this->pixFmt &&
|
||||
this->width == width &&
|
||||
|
Loading…
Reference in New Issue
Block a user