GIT
/
REPO
/
FRED-BOY
Projects
/
d2df-sdl.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f7b10d
)
we should set OpenGL flags before creating game window
author
Ketmar Dark <ketmar@ketmar.no-ip.org>
Sun, 13 Aug 2017 11:50:40 +0000
(14:50 +0300)
committer
Ketmar Dark <ketmar@ketmar.no-ip.org>
Sun, 13 Aug 2017 11:51:27 +0000
(14:51 +0300)
src/game/g_window.pas
patch
|
blob
|
history
diff --git
a/src/game/g_window.pas
b/src/game/g_window.pas
index 5f372f36526ca64b58316537104a2d05095f5bdc..651675a2572865cb3fc2feeaeb657f963a9efbb5 100644
(file)
--- 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();
DEADSOFTWARE 2012-2025