mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-14 04:57:54 +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
1 changed files with 3 additions and 0 deletions
|
@ -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 a new issue