mirror of
https://github.com/celisej567/source-engine.git
synced 2026-01-03 05:49:41 +03:00
materialsystem: fix undefined behaviour(bruh moment)
This commit is contained in:
@@ -2378,15 +2378,12 @@ void CMaterial::ReloadTextures( void )
|
||||
IMaterialVar **ppVars = GetShaderParams();
|
||||
for( i = 0; i < nParams; i++ )
|
||||
{
|
||||
if( ppVars[i] )
|
||||
if( ppVars[i] )
|
||||
{
|
||||
if( ppVars[i]->IsTexture() )
|
||||
{
|
||||
ITextureInternal *pTexture = ( ITextureInternal * )ppVars[i]->GetTextureValue();
|
||||
if( !IsTextureInternalEnvCubemap( pTexture ) )
|
||||
{
|
||||
pTexture->Download();
|
||||
}
|
||||
pTexture->Download();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user