mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
Call PixelEffect::detach() in Graphics::reset, not Graphics::clear (fixes issue #379)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user