summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e2c0ffb)
raw | patch | inline | side by side (parent: e2c0ffb)
author | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Mon, 14 Aug 2017 15:33:55 +0000 (18:33 +0300) | ||
committer | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Mon, 14 Aug 2017 15:34:44 +0000 (18:34 +0300) |
src/game/g_game.pas | patch | blob | history | |
src/game/g_window.pas | patch | blob | history |
diff --git a/src/game/g_game.pas b/src/game/g_game.pas
index 68b2ee4a987114e6ad98e41b8fb6518357491a37..963f8aec27dfa4e0f4586e9ecfbbecd6c69f203c 100644 (file)
--- a/src/game/g_game.pas
+++ b/src/game/g_game.pas
begin
Parse_Params(pars);
- s := Find_Param_Value(pars, '--opengl-dump-exts');
- if s <> '' then gwin_dump_extensions := true; // sorry
-
// Debug mode:
s := Find_Param_Value(pars, '--debug');
if (s <> '') then
diff --git a/src/game/g_window.pas b/src/game/g_window.pas
index 6ffa8ff05468b132ff35b3eaa2e8b4b988979a7e..9d27d57e974d056eb6910c4e71abea088d66d9d5 100644 (file)
--- a/src/game/g_window.pas
+++ b/src/game/g_window.pas
end;
function SDLMain(): Integer;
+var
+ idx: Integer;
begin
{$IFDEF HEADLESS}
e_NoGraphics := True;
{EnumDisplayModes();}
+ for idx := 1 to ParamCount do
+ begin
+ if ParamStr(idx) = '--opengl-dump-exts' then gwin_dump_extensions := true;
+ end;
+
if not glHasExtension('GL_ARB_texture_non_power_of_two') then
begin
e_WriteLog('Driver DID''T advertised NPOT textures support', MSG_WARNING);
e_WriteLog('Driver advertised NPOT textures support', MSG_NOTIFY);
glLegacyNPOT := false;
end;
+ gwin_dump_extensions := false;
Init();
Time_Old := GetTimer();