mirror of
https://github.com/celisej567/source-engine.git
synced 2026-09-04 07:33:27 +03:00
dedicated(win32): fix build issues #322
This commit is contained in:
@@ -4353,20 +4353,20 @@ ModelInstanceHandle_t CModelRender::CreateInstance( IClientRenderable *pRenderab
|
||||
|
||||
// validate static color meshes once, now at load/create time
|
||||
ValidateStaticPropColorData( handle );
|
||||
|
||||
|
||||
// 360 persists the color meshes across same map loads
|
||||
if ( !IsX360() || instance.m_ColorMeshHandle == DC_INVALID_HANDLE )
|
||||
#ifdef _X360
|
||||
if ( r_decalstaticprops.GetBool() && instance.m_LightCacheHandle )
|
||||
instance.m_AmbientLightingState = *(LightcacheGetStatic( *pCache, NULL, LIGHTCACHEFLAGS_STATIC ));
|
||||
#else
|
||||
if ( instance.m_ColorMeshHandle == DC_INVALID_HANDLE )
|
||||
{
|
||||
// builds out color meshes or loads disk colors, now at load/create time
|
||||
RecomputeStaticLighting( handle );
|
||||
}
|
||||
else
|
||||
if ( r_decalstaticprops.GetBool() && instance.m_LightCacheHandle )
|
||||
{
|
||||
instance.m_AmbientLightingState = *(LightcacheGetStatic( *pCache, NULL, LIGHTCACHEFLAGS_STATIC ));
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
return handle;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user