mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +00:00
fixed pointer problems and guard in material files
This commit is contained in:
parent
95ef5ec226
commit
688e54cb43
3 changed files with 5 additions and 5 deletions
|
|
@ -1256,7 +1256,7 @@ MaterialParameterHandle* ProcessedShaderMaterial::getMaterialParameterHandle(con
|
|||
/// This is here to deal with the differences between ProcessedCustomMaterials and ProcessedShaderMaterials.
|
||||
GFXShaderConstBuffer* ProcessedShaderMaterial::_getShaderConstBuffer( const U32 pass )
|
||||
{
|
||||
if (pass < mPasses.size())
|
||||
if (mCurrentParams && pass < mPasses.size())
|
||||
{
|
||||
return static_cast<ShaderMaterialParameters*>(mCurrentParams)->getBuffer(pass);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue