Fixed love.graphics.setScissor when love.graphics.setCanvas is called directly after a setScissor call

This commit is contained in:
Alex Szpakowski
2013-06-07 03:31:30 -03:00
parent 1482b13363
commit c0998cd996
5 changed files with 90 additions and 13 deletions
+1 -1
View File
@@ -455,7 +455,7 @@ void Canvas::setupGrab()
// bind buffer and clear screen
glPushAttrib(GL_VIEWPORT_BIT | GL_TRANSFORM_BIT);
strategy->bindFBO(fbo);
glViewport(0, 0, width, height);
gl.setViewport(OpenGL::Viewport(0, 0, width, height));
// Reset the projection matrix
glMatrixMode(GL_PROJECTION);