suggested revision

This commit is contained in:
Azaezel 2015-07-29 08:41:36 -05:00
parent 3c1c88d96b
commit 5615b642df

View file

@ -223,8 +223,8 @@ void TSMesh::innerRender( TSMaterialList *materials, const TSRenderState &rdata,
// We need to have a material. // We need to have a material.
if ( draw.matIndex & TSDrawPrimitive::NoMaterial ) if ( draw.matIndex & TSDrawPrimitive::NoMaterial )
continue; continue;
/*
#ifdef TORQUE_DEBUG #ifdef TORQUE_DEBUG_BREAK_INSPECT
// for inspection if you happen to be running in a debugger and can't do bit // for inspection if you happen to be running in a debugger and can't do bit
// operations in your head. // operations in your head.
S32 triangles = draw.matIndex & TSDrawPrimitive::Triangles; S32 triangles = draw.matIndex & TSDrawPrimitive::Triangles;
@ -237,8 +237,9 @@ void TSMesh::innerRender( TSMaterialList *materials, const TSRenderState &rdata,
TORQUE_UNUSED(fan); TORQUE_UNUSED(fan);
TORQUE_UNUSED(indexed); TORQUE_UNUSED(indexed);
TORQUE_UNUSED(type); TORQUE_UNUSED(type);
//define TORQUE_DEBUG_BREAK_INSPECT, and insert debug break here to inspect the above elements at runtime
#endif #endif
*/
const U32 matIndex = draw.matIndex & TSDrawPrimitive::MaterialMask; const U32 matIndex = draw.matIndex & TSDrawPrimitive::MaterialMask;
BaseMatInstance *matInst = materials->getMaterialInst( matIndex ); BaseMatInstance *matInst = materials->getMaterialInst( matIndex );