Make love.graphics.toggleFullscreen properly handle graphics state.

This commit is contained in:
Bill Meltsner
2012-02-29 18:55:08 -05:00
parent 7a43721335
commit 84634affd5
+1 -1
View File
@@ -173,7 +173,7 @@ namespace opengl
int width, height, fsaa;
bool fullscreen, vsync;
currentWindow->getWindow(width, height, fullscreen, vsync, fsaa);
return currentWindow->setWindow(width, height, !fullscreen, vsync, fsaa);
return setMode(width, height, !fullscreen, vsync, fsaa);
}