X-Git-Url: http://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=blobdiff_plain;f=src%2Fgame%2Fg_window.pas;h=7774c0a34c0c03b2bda5fd5418ece817dc492963;hp=afc23e2b1b22a6e22f4adcd9e89cfa154495e10b;hb=676995a77ad243efc0abee75841f81e86a7262a0;hpb=d7e26c5b3bd136c429cd4e1532892b9476658126 diff --git a/src/game/g_window.pas b/src/game/g_window.pas index afc23e2..7774c0a 100644 --- a/src/game/g_window.pas +++ b/src/game/g_window.pas @@ -326,6 +326,15 @@ begin mdfo.Free(); Halt(0); end; + + if (arg = '--pixel-scale') or (arg = '-pixel-scale') then + begin + if (idx <= ParamCount) then + begin + if not conParseFloat(r_pixel_scale, ParamStr(idx)) then r_pixel_scale := 1.0; + Inc(idx); + end; + end; end; {$IFNDEF USE_SYSSTUB} @@ -333,6 +342,7 @@ begin glLegacyNPOT := not (GLExtensionSupported('GL_ARB_texture_non_power_of_two') or GLExtensionSupported('GL_OES_texture_npot')); {$ELSE} glLegacyNPOT := False; + glRenderToFBO := False; {$ENDIF} if glNPOTOverride and glLegacyNPOT then begin