diff --git a/libraries/gpu/src/gpu/Batch.h b/libraries/gpu/src/gpu/Batch.h index 2bead507b8..bb38379a66 100644 --- a/libraries/gpu/src/gpu/Batch.h +++ b/libraries/gpu/src/gpu/Batch.h @@ -417,10 +417,7 @@ public: } const Data& get(uint32 offset) const { - /* if (offset >= _items.size()) { - static const Data EMPTY; - return EMPTY; - }*/ + assert((offset >= _items.size())); return (_items.data() + offset)->_data; } diff --git a/libraries/graphics/src/graphics/Geometry.cpp b/libraries/graphics/src/graphics/Geometry.cpp index 5a374ae8d0..a983ba07b4 100755 --- a/libraries/graphics/src/graphics/Geometry.cpp +++ b/libraries/graphics/src/graphics/Geometry.cpp @@ -119,7 +119,6 @@ Box Mesh::evalPartBound(int partNum) const { for (;index != endIndex; index++) { // skip primitive restart indices if ((*index) != PRIMITIVE_RESTART_INDEX) { - // box += vertices[(*index)]; box += _vertexBuffer.get(part._baseVertex + (*index)); } } @@ -140,7 +139,6 @@ Box Mesh::evalPartsBound(int partStart, int partEnd) const { for (;index != endIndex; index++) { // skip primitive restart indices if ((*index) != (uint) PRIMITIVE_RESTART_INDEX) { - //partBound += vertices[(*index)]; partBound += _vertexBuffer.get((*part)._baseVertex + (*index)); } }