mirror of
https://github.com/love2d/love.git
synced 2026-08-18 11:44:15 +02:00
Fix love.window.setMode crashing if a Canvas is active.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user