[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 2021-10-19 19:38:32 -04:00 committed by Geoffrey McRae
parent 74418106de
commit fc037ccc95

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);