From 8d318aca88d4253961e698b0cd05399989efe252 Mon Sep 17 00:00:00 2001 From: Ketmar Dark Date: Sun, 13 Aug 2017 14:50:40 +0300 Subject: [PATCH] we should set OpenGL flags before creating game window --- src/game/g_window.pas | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(); -- 2.29.2