mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +00:00
Merge branch 'AFXFIX2_VertFormatCheck' into Jeff_Faust_Fixes
This commit is contained in:
commit
0b0a68c2ac
1 changed files with 6 additions and 0 deletions
|
|
@ -290,6 +290,12 @@ bool MatInstance::init( const FeatureSet &features,
|
|||
//----------------------------------------------------------------------------
|
||||
bool MatInstance::reInit()
|
||||
{
|
||||
if (!mVertexFormat)
|
||||
{
|
||||
mIsValid = false;
|
||||
return mIsValid;
|
||||
}
|
||||
|
||||
SAFE_DELETE(mProcessedMaterial);
|
||||
deleteAllHooks();
|
||||
mIsValid = processMaterial();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue