Fix love.window.setMode crashing if a Canvas is active.

This commit is contained in:
Alex Szpakowski
2016-03-22 18:05:26 -03:00
parent ea2aadf888
commit 090c50795a
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -521,7 +521,8 @@ void Canvas::stopGrab(bool switchingToOtherCanvas)
// Make sure the canvas texture is up to date if we're using MSAA.
resolveMSAA(false);
gl.matrices.projection.pop_back();
if (gl.matrices.projection.size() > 1)
gl.matrices.projection.pop_back();
if (!switchingToOtherCanvas)
{