Browse Source

Make love.graphics.toggleFullscreen properly handle graphics state.

Bill Meltsner 13 years ago
parent
commit
84634affd5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/modules/graphics/opengl/Graphics.cpp

+ 1 - 1
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);
 	}