From 84634affd5faca1b747fa21be2bf51cb8e28b0c2 Mon Sep 17 00:00:00 2001 From: Bill Meltsner Date: Wed, 29 Feb 2012 18:55:08 -0500 Subject: [PATCH] Make love.graphics.toggleFullscreen properly handle graphics state. --- src/modules/graphics/opengl/Graphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/graphics/opengl/Graphics.cpp b/src/modules/graphics/opengl/Graphics.cpp index 8ee3a6ba2..dd85d4998 100644 --- a/src/modules/graphics/opengl/Graphics.cpp +++ b/src/modules/graphics/opengl/Graphics.cpp @@ -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); }