DEADSOFTWARE

we should set OpenGL flags before creating game window
authorKetmar Dark <ketmar@ketmar.no-ip.org>
Sun, 13 Aug 2017 11:50:40 +0000 (14:50 +0300)
committerKetmar Dark <ketmar@ketmar.no-ip.org>
Sun, 13 Aug 2017 11:51:27 +0000 (14:51 +0300)
src/game/g_window.pas

index 5f372f36526ca64b58316537104a2d05095f5bdc..651675a2572865cb3fc2feeaeb657f963a9efbb5 100644 (file)
@@ -646,6 +646,9 @@ begin
   e_NoGraphics := True;
 {$ENDIF}
 
+  e_WriteLog('Initializing OpenGL', MSG_NOTIFY);
+  InitOpenGL(gVSync);
+
   e_WriteLog('Creating GL window', MSG_NOTIFY);
   if not CreateGLWindow(PChar(Format('Doom 2D: Forever %s', [GAME_VERSION]))) then
   begin
@@ -653,9 +656,6 @@ begin
     exit;
   end;
 
-  e_WriteLog('Initializing OpenGL', MSG_NOTIFY);
-  InitOpenGL(gVSync);
-
   {EnumDisplayModes();}
 
   Init();