mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-04-25 16:16:28 +00:00
[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:
parent
74418106de
commit
fc037ccc95
@ -613,9 +613,9 @@ bool egl_postProcessRun(EGL_PostProcess * this, EGL_Texture * tex,
|
|||||||
vector_forEach(filter, &this->filters)
|
vector_forEach(filter, &this->filters)
|
||||||
{
|
{
|
||||||
egl_filterSetOutputResHint(filter, targetX, targetY);
|
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;
|
continue;
|
||||||
|
|
||||||
texture = egl_filterRun(filter, &filterRects, texture);
|
texture = egl_filterRun(filter, &filterRects, texture);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user