Skip to content

Commit

Permalink
ref: gl: use world version to enable large lightmaps for BSP2 automat…
Browse files Browse the repository at this point in the history
…ically
  • Loading branch information
a1batross committed Dec 15, 2023
1 parent c96cf7e commit a7e8423
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ref/gl/gl_rsurf.c
Original file line number Diff line number Diff line change
Expand Up @@ -3532,7 +3532,8 @@ void GL_BuildLightmaps( void )
memset( &RI, 0, sizeof( RI ));

// update the lightmap blocksize
if( FBitSet( ENGINE_GET_PARM( PARM_FEATURES ), ENGINE_LARGE_LIGHTMAPS ))
if( FBitSet( ENGINE_GET_PARM( PARM_FEATURES ), ENGINE_LARGE_LIGHTMAPS )
|| ENGINE_GET_PARM( PARM_WORLD_VERSION ) == QBSP2_VERSION )
tr.block_size = BLOCK_SIZE_MAX;
else tr.block_size = BLOCK_SIZE_DEFAULT;

Expand Down

0 comments on commit a7e8423

Please sign in to comment.