TGEA 1.8.x BUG - Null Stateblock Assert in tsShapeInstance
by Andy Rollins · in Torque Game Engine Advanced · 02/16/2009 (4:06 pm) · 2 replies
Found a bug in TGEA with the DTS billboarding, if you try and use that functionality then when TSLastDetail object is created it tries to take a few snapshots of the object.
The assert is thrown from line 871 in tsShapeInstance.cpp
mSnapshotSB isn't initialized, the function TSShapeInstance::setupStateBlocks() does create the stateblock but that function isn't called anywhere in the engine.
FIX: Simplest would seem to be to add a call to setupStateBlocks() to the end of the TSShapeInstance Constructor.
Any idea if that's the correct approach?
The assert is thrown from line 871 in tsShapeInstance.cpp
GFX->setStateBlock(mSnapshotSB);
mSnapshotSB isn't initialized, the function TSShapeInstance::setupStateBlocks() does create the stateblock but that function isn't called anywhere in the engine.
FIX: Simplest would seem to be to add a call to setupStateBlocks() to the end of the TSShapeInstance Constructor.
Any idea if that's the correct approach?
Associate Alex Scarborough