mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-30 05:59:20 +00:00
engine: hdr to ldr conversion for HDR_TYPE_NONE
This commit is contained in:
+3
-3
@@ -3637,12 +3637,12 @@ void CModelRender::ValidateStaticPropColorData( ModelInstanceHandle_t handle )
|
||||
// fetch the header
|
||||
CUtlBuffer utlBuf;
|
||||
char fileName[MAX_PATH];
|
||||
if ( g_pMaterialSystemHardwareConfig->GetHDRType() == HDR_TYPE_NONE || g_bBakedPropLightingNoSeparateHDR )
|
||||
if ( g_bBakedPropLightingNoSeparateHDR )
|
||||
{
|
||||
Q_snprintf( fileName, sizeof( fileName ), "sp_%d%s.vhv", StaticPropMgr()->GetStaticPropIndex( pProp ), GetPlatformExt() );
|
||||
}
|
||||
else
|
||||
{
|
||||
{
|
||||
Q_snprintf( fileName, sizeof( fileName ), "sp_hdr_%d%s.vhv", StaticPropMgr()->GetStaticPropIndex( pProp ), GetPlatformExt() );
|
||||
}
|
||||
|
||||
@@ -3930,7 +3930,7 @@ bool CModelRender::LoadStaticPropColorData( IHandleEntity *pProp, DataCacheHandl
|
||||
|
||||
// each static prop has its own compiled color mesh
|
||||
char fileName[MAX_PATH];
|
||||
if ( g_pMaterialSystemHardwareConfig->GetHDRType() == HDR_TYPE_NONE || g_bBakedPropLightingNoSeparateHDR )
|
||||
if ( g_bBakedPropLightingNoSeparateHDR )
|
||||
{
|
||||
Q_snprintf( fileName, sizeof( fileName ), "sp_%d%s.vhv", StaticPropMgr()->GetStaticPropIndex( pProp ), GetPlatformExt() );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user