Skip to content

Commit

Permalink
tr_init: do not enforce r_picMip range
Browse files Browse the repository at this point in the history
The upper limit of 3 assumed textures were still sized like in 1999.

The code in r_imageMaxDimension behaves like if r_picMip was zero if negative anyway.
  • Loading branch information
illwieckz committed Apr 6, 2021
1 parent e6cf960 commit dc481f1
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/engine/renderer/tr_init.cpp
Expand Up @@ -1053,7 +1053,6 @@ ScreenshotCmd screenshotPNGRegistration("screenshotPNG", ssFormat_t::SSF_PNG, "p
r_arb_gpu_shader5 = ri.Cvar_Get( "r_arb_gpu_shader5", "1", CVAR_CHEAT | CVAR_LATCH );

r_picMip = ri.Cvar_Get( "r_picMip", "0", CVAR_LATCH | CVAR_ARCHIVE );
AssertCvarRange( r_picmip, 0, 3, true );
r_imageMaxDimension = ri.Cvar_Get( "r_imageMaxDimension", "0", CVAR_LATCH | CVAR_ARCHIVE );
r_ignoreMaterialMinDimension = ri.Cvar_Get( "r_ignoreMaterialMinDimension", "0", CVAR_LATCH | CVAR_ARCHIVE );
r_ignoreMaterialMaxDimension = ri.Cvar_Get( "r_ignoreMaterialMaxDimension", "0", CVAR_LATCH | CVAR_ARCHIVE );
Expand Down

0 comments on commit dc481f1

Please sign in to comment.