X-Git-Url: https://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=blobdiff_plain;f=src%2Fgame%2Fg_window.pas;h=7774c0a34c0c03b2bda5fd5418ece817dc492963;hp=afc23e2b1b22a6e22f4adcd9e89cfa154495e10b;hb=e452d337f0620b50d8d978b534437b2732134d8f;hpb=92655287ffab368ec7bf450fa3d82fb2328a7b99 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