mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-11 23:57:57 +00:00
ref: gl: use world version to enable large lightmaps for BSP2 automatically
This commit is contained in:
parent
c96cf7e22d
commit
a7e84230c3
@ -3532,7 +3532,8 @@ void GL_BuildLightmaps( void )
|
|||||||
memset( &RI, 0, sizeof( RI ));
|
memset( &RI, 0, sizeof( RI ));
|
||||||
|
|
||||||
// update the lightmap blocksize
|
// 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;
|
tr.block_size = BLOCK_SIZE_MAX;
|
||||||
else tr.block_size = BLOCK_SIZE_DEFAULT;
|
else tr.block_size = BLOCK_SIZE_DEFAULT;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user