mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
Make love.graphics.toggleFullscreen properly handle graphics state.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user