diff --git a/Engine/source/T3D/assets/ShapeAsset.cpp b/Engine/source/T3D/assets/ShapeAsset.cpp index ea4882add..575c6dedf 100644 --- a/Engine/source/T3D/assets/ShapeAsset.cpp +++ b/Engine/source/T3D/assets/ShapeAsset.cpp @@ -45,9 +45,6 @@ // Debug Profiling. #include "platform/profiler.h" -static U32 execDepth = 0; -static U32 journalDepth = 1; - //----------------------------------------------------------------------------- IMPLEMENT_CONOBJECT(ShapeAsset); diff --git a/Engine/source/gfx/D3D9/gfxD3D9Shader.cpp b/Engine/source/gfx/D3D9/gfxD3D9Shader.cpp index 64d0058ca..e05e3f23c 100644 --- a/Engine/source/gfx/D3D9/gfxD3D9Shader.cpp +++ b/Engine/source/gfx/D3D9/gfxD3D9Shader.cpp @@ -176,7 +176,6 @@ bool GFXD3D9ShaderBufferLayout::setMatrix(const ParamDesc& pd, const GFXShaderCo } else if (pd.constType == GFXSCT_Float4x3) { - F32 buffer[4*4]; const U32 csize = 48; // Loop through and copy diff --git a/Engine/source/gui/3d/guiTSControl.cpp b/Engine/source/gui/3d/guiTSControl.cpp index a3f21696f..d19d58aee 100644 --- a/Engine/source/gui/3d/guiTSControl.cpp +++ b/Engine/source/gui/3d/guiTSControl.cpp @@ -511,7 +511,6 @@ void GuiTSCtrl::onRender(Point2I offset, const RectI &updateRect) U32 origStyle = GFX->getCurrentRenderStyle(); // Set up the appropriate render style - U32 prevRenderStyle = GFX->getCurrentRenderStyle(); Point2I renderSize = getExtent(); Frustum frustum; @@ -795,7 +794,6 @@ void GuiTSCtrl::renderDisplayPreview(const RectI &updateRect, GFXTexHandle &prev F32 screenBottom = rectHeight; const F32 fillConv = 0.0f; - const F32 frustumDepthAdjusted = 0.0f; verts[0].point.set(screenLeft - fillConv, screenTop - fillConv, 0.f); verts[1].point.set(screenRight - fillConv, screenTop - fillConv, 0.f); verts[2].point.set(screenLeft - fillConv, screenBottom - fillConv, 0.f); diff --git a/Engine/source/gui/containers/guiRolloutCtrl.cpp b/Engine/source/gui/containers/guiRolloutCtrl.cpp index 919846b66..43bd123b7 100644 --- a/Engine/source/gui/containers/guiRolloutCtrl.cpp +++ b/Engine/source/gui/containers/guiRolloutCtrl.cpp @@ -176,7 +176,6 @@ void GuiRolloutCtrl::removeObject( SimObject *obj ) void GuiRolloutCtrl::onMouseDown( const GuiEvent &event ) { - Point2I localPoint = globalToLocalCoord( event.mousePoint ); mouseLock(); } diff --git a/Engine/source/scene/reflectionManager.cpp b/Engine/source/scene/reflectionManager.cpp index b9e146477..343c0f5a0 100644 --- a/Engine/source/scene/reflectionManager.cpp +++ b/Engine/source/scene/reflectionManager.cpp @@ -149,13 +149,9 @@ void ReflectionManager::update( F32 timeSlice, // Calculate an ideal culling size here, we'll just assume double fov based on the first fovport based on // the head position. FovPort port = query.fovPort[0]; - F32 leftSize = query.nearPlane * port.leftTan; - F32 rightSize = query.nearPlane * port.rightTan; F32 upSize = query.nearPlane * port.upTan; F32 downSize = query.nearPlane * port.downTan; - F32 left = -leftSize; - F32 right = rightSize; F32 top = upSize; F32 bottom = -downSize; @@ -212,7 +208,6 @@ void ReflectionManager::update( F32 timeSlice, mTimer->getElapsedMs(); mTimer->reset(); U32 numUpdated = 0; - U32 currentTarget = stereoTarget >= 0 ? stereoTarget : 0; reflectorIter = mReflectors.begin(); for ( ; reflectorIter != mReflectors.end(); reflectorIter++ ) { diff --git a/Engine/source/scene/reflector.cpp b/Engine/source/scene/reflector.cpp index b8d2d9c4c..9289a39b7 100644 --- a/Engine/source/scene/reflector.cpp +++ b/Engine/source/scene/reflector.cpp @@ -624,7 +624,6 @@ void PlaneReflector::updateReflection( const ReflectParams ¶ms ) MatrixF origNonClipProjection = gClientSceneGraph->getNonClipProjection(); PFXFrameState origPFXState = PFXMGR->getFrameState(); - const FovPort *currentFovPort = params.query->fovPort; MatrixF inverseEyeTransforms[2]; Frustum gfxFrustum; diff --git a/Engine/source/scene/sceneManager.cpp b/Engine/source/scene/sceneManager.cpp index 187f32498..bc8386390 100644 --- a/Engine/source/scene/sceneManager.cpp +++ b/Engine/source/scene/sceneManager.cpp @@ -246,7 +246,6 @@ void SceneManager::renderScene( SceneRenderState* renderState, U32 objectMask, S PFXFrameState origPFXState = PFXMGR->getFrameState(); const FovPort *currentFovPort = GFX->getStereoFovPort(); - const MatrixF *eyeTransforms = GFX->getStereoEyeTransforms(); const MatrixF *worldEyeTransforms = GFX->getInverseStereoEyeTransforms(); // Render left half of display diff --git a/Engine/source/ts/tsMesh.cpp b/Engine/source/ts/tsMesh.cpp index 822895bfd..f92fa1ecc 100644 --- a/Engine/source/ts/tsMesh.cpp +++ b/Engine/source/ts/tsMesh.cpp @@ -1446,7 +1446,6 @@ void TSSkinMesh::setupVertexTransforms() for( i = 0, j = 0; i < curTransform.transformCount; i += 4, j += 1 ) { __TSMeshVertex_BoneData &v = mVertexData.getBone(curTransform.vertexIndex, j); - const BatchData::TransformOp &transformOp = curTransform.transform[i]; S32 vertsSet = transformsLeft > 4 ? 4 : transformsLeft; __TSMeshIndex_List indices; @@ -3183,9 +3182,6 @@ U32 TSMesh::getNumVerts() void TSMesh::_convertToVertexData(TSMeshVertexArray &outArray, const Vector &_verts, const Vector &_norms) { - U32 colorOffset = 0; - U32 boneOffset = 0; - // Update tangents list createTangents(verts, norms); @@ -3202,7 +3198,6 @@ void TSMesh::_convertToVertexData(TSMeshVertexArray &outArray, const VectorhasBlendIndices(); bool needWeightSet = outArray.getBoneOffset() != 0; bool hasColor = getHasColor(); @@ -3240,8 +3235,6 @@ void TSMesh::_convertToVertexData(TSMeshVertexArray &outArray, const VectormPrimitiveArray; U32 indsInBuffer = ibIndices - indicesStart; for (U32 i = 0; i < primStart; i++) @@ -723,7 +722,6 @@ void TSShape::getVertexBuffer(TSVertexBufferHandle &vb, GFXBufferType bufferType { vb.set(GFX, mVertexSize, &mVertexFormat, mShapeVertexData.size / mVertexSize, bufferType); - U8 *vertexData = mShapeVertexData.base; U8 *vertPtr = vb.lock(); dMemcpy(vertPtr, mShapeVertexData.base, mShapeVertexData.size); vb.unlock(); @@ -770,12 +768,6 @@ void TSShape::initVertexBufferPointers() void TSShape::initVertexFeatures() { - bool hasColors = false; - bool hasTexcoord2 = false; - bool hasSkin = false; - U32 vertStart = 0; - U32 primStart = 0; - U32 indStart = 0; if (!needsBufferUpdate()) { @@ -876,7 +868,6 @@ void TSShape::initVertexFeatures() for (Vector::iterator iter = meshes.begin(); iter != meshes.end(); iter++) { TSMesh *mesh = *iter; - U32 idx = iter - meshes.begin(); if (!mesh || (mesh->getMeshType() != TSMesh::StandardMeshType && @@ -1457,7 +1448,6 @@ void TSShape::assembleShape() if (tsalloc.getBuffer() && vboSize > 0) { U8 *vertexData = (U8*)dMalloc_aligned(vboSize, 16); - U8 *vertexDataPtr = vertexData; dMemcpy(vertexData, vboData, vboSize); mShapeVertexData.set(vertexData, vboSize); mShapeVertexData.vertexDataReady = true; @@ -1759,8 +1749,6 @@ void TSShape::disassembleShape() { // Vertex format now included with mesh data. Note this doesn't include index data which // is constructed directly in the buffer from the meshes - S8 *vboData = NULL; - S32 vboSize = 0; mBasicVertexFormat.writeAlloc(&tsalloc);