From: Ketmar Dark Date: Wed, 13 Sep 2017 22:25:17 +0000 (+0300) Subject: less OpenGL calls for headless server X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=c6e79d002586d52ea865de66070e4e4b4cdccea0;p=d2df-sdl.git less OpenGL calls for headless server --- diff --git a/src/game/g_window.pas b/src/game/g_window.pas index 71ec201..e137973 100644 --- a/src/game/g_window.pas +++ b/src/game/g_window.pas @@ -895,6 +895,12 @@ begin {EnumDisplayModes();} + {$IFDEF HEADLESS} + gwin_k8_enable_light_experiments = false; + gwin_has_stencil := false; + glLegacyNPOT := false; + gwin_dump_extensions := false; + {$ELSE} if gwin_k8_enable_light_experiments then begin SDL_GL_GetAttribute(SDL_GL_STENCIL_SIZE, @ltmp); @@ -917,6 +923,7 @@ begin glLegacyNPOT := false; end; gwin_dump_extensions := false; + {$ENDIF} Init(); Time_Old := GetTimer();