[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:
Quantum authored and Geoffrey McRae committed 2021-10-20 10:47:59 +11:00
1 parent c9e8de334a
commit 74418106de
1 file changed
+3
+3
View File
@@ -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 &&