[client] egl: handle filter setup returning false

As discussed, this should just skip the filter as if it's disabled.
This commit is contained in:
Quantum authored and Geoffrey McRae committed 2021-10-20 10:48:18 +11:00
1 parent 74418106de
commit fc037ccc95
1 file changed
+2 -2
+2 -2
View File
@@ -613,9 +613,9 @@ bool egl_postProcessRun(EGL_PostProcess * this, EGL_Texture * tex,
vector_forEach(filter, &this->filters)
{
egl_filterSetOutputResHint(filter, targetX, targetY);
egl_filterSetup(filter, tex->format.pixFmt, sizeX, sizeY);
if (!egl_filterPrepare(filter))
if (!egl_filterSetup(filter, tex->format.pixFmt, sizeX, sizeY) ||
!egl_filterPrepare(filter))
continue;
texture = egl_filterRun(filter, &filterRects, texture);