diff --git a/src/modules/graphics/opengl/Graphics.cpp b/src/modules/graphics/opengl/Graphics.cpp index dd85d4998..b357c8ca8 100644 --- a/src/modules/graphics/opengl/Graphics.cpp +++ b/src/modules/graphics/opengl/Graphics.cpp @@ -182,6 +182,7 @@ namespace opengl DisplayState s; discardStencil(); Canvas::bindDefaultCanvas(); + PixelEffect::detach(); restoreState(s); } @@ -189,7 +190,6 @@ namespace opengl { glClear(GL_COLOR_BUFFER_BIT); glLoadIdentity(); - PixelEffect::detach(); } void Graphics::present()