Browse Source

Fixed unnecessary duplicate boundingBox_ member variable in DecalSet.

Lasse Öörni 12 years ago
parent
commit
a9fda01ae7
2 changed files with 2 additions and 3 deletions
  1. 2 1
      Source/Engine/Graphics/DecalSet.cpp
  2. 0 2
      Source/Engine/Graphics/DecalSet.h

+ 2 - 1
Source/Engine/Graphics/DecalSet.cpp

@@ -1011,10 +1011,11 @@ void DecalSet::UpdateBuffers()
     
     float* vertices = (float*)vertexBuffer_->Lock(0, numVertices_);
     unsigned short* indices = (unsigned short*)indexBuffer_->Lock(0, numIndices_);
-    unsigned short indexStart = 0;
     
     if (vertices && indices)
     {
+        unsigned short indexStart = 0;
+        
         for (List<Decal>::ConstIterator i = decals_.Begin(); i != decals_.End(); ++i)
         {
             for (unsigned j = 0; j < i->vertices_.Size(); ++j)

+ 0 - 2
Source/Engine/Graphics/DecalSet.h

@@ -212,8 +212,6 @@ private:
     Vector<Bone> bones_;
     /// Skinning matrices.
     PODVector<Matrix3x4> skinMatrices_;
-    /// Local-space bounding box.
-    BoundingBox boundingBox_;
     /// Vertices in the current decals.
     unsigned numVertices_;
     /// Indices in the current decals.