mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 16:14:38 +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()
|
bool MatInstance::reInit()
|
||||||
{
|
{
|
||||||
|
if (!mVertexFormat)
|
||||||
|
{
|
||||||
|
mIsValid = false;
|
||||||
|
return mIsValid;
|
||||||
|
}
|
||||||
|
|
||||||
SAFE_DELETE(mProcessedMaterial);
|
SAFE_DELETE(mProcessedMaterial);
|
||||||
deleteAllHooks();
|
deleteAllHooks();
|
||||||
mIsValid = processMaterial();
|
mIsValid = processMaterial();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue