Browse Source

Removed "SDL_app" caption before window is created initially.

rude 15 years ago
parent
commit
eaf8472a98
1 changed files with 5 additions and 3 deletions
  1. 5 3
      src/modules/graphics/opengl/Graphics.cpp

+ 5 - 3
src/modules/graphics/opengl/Graphics.cpp

@@ -18,11 +18,10 @@
 * 3. This notice may not be removed or altered from any source distribution.
 **/
 
-#include "Graphics.h"
-
-// LOVE
 #include <common/config.h>
 
+#include "Graphics.h"
+
 namespace love
 {
 namespace graphics
@@ -186,6 +185,9 @@ namespace opengl
 		// Fullscreen?
 		Uint32 sdlflags = fullscreen ? (SDL_OPENGL | SDL_FULLSCREEN) : SDL_OPENGL;
 
+		if(!isCreated())
+			setCaption("");
+
 		// Have SDL set the video mode.
 		if(SDL_SetVideoMode(width, height, 32, sdlflags ) == 0)
 		{