Commits

vrld  committed 525cad6

Revert reverting 8d29d4ca285e.

  • Participants
  • Parent commits 1877206

Comments (0)

Files changed (1)

File src/modules/graphics/opengl/Graphics.cpp

 	bool Graphics::toggleFullscreen()
 	{
 		// Try to do the change.
-		if(!setMode(currentMode.width,
+		return setMode(currentMode.width,
 			currentMode.height,
 			!currentMode.fullscreen,
 			currentMode.vsync,
-			currentMode.fsaa))
-			return false;
-		currentMode.fullscreen = !currentMode.fullscreen;
-		return true;
+			currentMode.fsaa);
 	}