From: Ketmar Dark Date: Sun, 13 Aug 2017 11:50:40 +0000 (+0300) Subject: we should set OpenGL flags before creating game window X-Git-Url: http://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=commitdiff_plain;h=8d318aca88d4253961e698b0cd05399989efe252 we should set OpenGL flags before creating game window --- diff --git a/src/game/g_window.pas b/src/game/g_window.pas index 5f372f3..651675a 100644 --- a/src/game/g_window.pas +++ b/src/game/g_window.pas @@ -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();