mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
mVertexFormat validation fix
With Permission from Jeff Faust. // AFX CODE BLOCK (bug-fix) << (no text, self evident)
This commit is contained in:
parent
84430a46a8
commit
a4adf28ef5
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