Addresses roughly half of the C4189 errors though the following methodologies:

1) truly unused vars removed
2) vars leading to remmed out code for debugging remmed in turn.

left out:
vars in macros.
This commit is contained in:
Azaezel 2015-07-29 03:03:27 -05:00
parent b24bdfbc8b
commit 555610f69f
8 changed files with 9 additions and 15 deletions

View file

@ -223,7 +223,7 @@ void TSMesh::innerRender( TSMaterialList *materials, const TSRenderState &rdata,
// We need to have a material.
if ( draw.matIndex & TSDrawPrimitive::NoMaterial )
continue;
/*
#ifdef TORQUE_DEBUG
// for inspection if you happen to be running in a debugger and can't do bit
// operations in your head.
@ -238,7 +238,7 @@ void TSMesh::innerRender( TSMaterialList *materials, const TSRenderState &rdata,
TORQUE_UNUSED(indexed);
TORQUE_UNUSED(type);
#endif
*/
const U32 matIndex = draw.matIndex & TSDrawPrimitive::MaterialMask;
BaseMatInstance *matInst = materials->getMaterialInst( matIndex );