Change Graphics::reset() to unbind FBO and clear stencil buffer. Change error

screen to call love.graphics.reset() instead of individual resets.

--HG--
branch : minor
This commit is contained in:
vrld
2011-04-26 23:20:58 +02:00
parent b3162a4661
commit a18632ce2d
3 changed files with 129 additions and 137 deletions
+2
View File
@@ -297,6 +297,8 @@ namespace opengl
void Graphics::reset()
{
DisplayState s;
discardMask();
Framebuffer::bindDefaultBuffer();
restoreState(s);
}