Removed passive-aggressive comment, (it was a late night)

This commit is contained in:
Anthony J. Thibault 2016-03-11 13:35:27 -08:00
parent ab390f7d2e
commit 0ce004c8a7

View file

@ -392,18 +392,20 @@ void AnimDebugDraw::update() {
assert(numVerts == (v - verts)); assert(numVerts == (v - verts));
// This render item bound shit is broken. // The RenderItem culling is not working correctly
// Fuck that, use the big ass bound instead. // Workaround this issue by using the default constructed
// item._bound which is a 16 km cube.
/* /*
render::Item::Bound theBound; render::Item::Bound theBound;
for (int i = 0; i < numVerts; i++) { for (int i = 0; i < numVerts; i++) {
theBound += verts[i].pos; theBound += verts[i].pos;
} }
data._bound = theBound;
*/ */
data._isVisible = (numVerts > 0); data._isVisible = (numVerts > 0);
//data._bound = theBound;
data._indexBuffer->resize(sizeof(uint16_t) * numVerts); data._indexBuffer->resize(sizeof(uint16_t) * numVerts);
uint16_t* indices = (uint16_t*)data._indexBuffer->editData(); uint16_t* indices = (uint16_t*)data._indexBuffer->editData();
for (int i = 0; i < numVerts; i++) { for (int i = 0; i < numVerts; i++) {