]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/fg_os_sdl.cxx
Migrate FlightGear code to use "#include SG_GL*" defined in
[flightgear.git] / src / Main / fg_os_sdl.cxx
index b38e20151f51e2f124ccb17a64d91896b0351ebb..99f93056c115a0b5524a75f3d4d75ccf4fb6bf3d 100644 (file)
@@ -71,6 +71,8 @@ void fgOSOpenWindow(int w, int h, int bpp,
         throw sg_throwable(string("Failed to initialize SDL: ")
                            + SDL_GetError());
 
+    SDL_WM_SetCaption("FlightGear", "FlightGear");
+
     SDL_GL_SetAttribute(SDL_GL_RED_SIZE, cbits);
     SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, cbits);
     SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, cbits);
@@ -89,8 +91,6 @@ void fgOSOpenWindow(int w, int h, int bpp,
         throw sg_throwable(string("Failed to set SDL video mode: ")
                                    + SDL_GetError());
 
-    SDL_WM_SetCaption("FlightGear", "FlightGear");
-
     // This enables keycode translation (e.g. capital letters when
     // shift is pressed, as well as i18n input methods).  Eventually,
     // we may want to port the input maps to specify <mod-shift>