mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
Removed passive-aggressive comment, (it was a late night)
This commit is contained in:
parent
ab390f7d2e
commit
0ce004c8a7
1 changed files with 5 additions and 3 deletions
|
@ -392,18 +392,20 @@ void AnimDebugDraw::update() {
|
|||
|
||||
assert(numVerts == (v - verts));
|
||||
|
||||
// This render item bound shit is broken.
|
||||
// Fuck that, use the big ass bound instead.
|
||||
// The RenderItem culling is not working correctly
|
||||
// Workaround this issue by using the default constructed
|
||||
// item._bound which is a 16 km cube.
|
||||
/*
|
||||
render::Item::Bound theBound;
|
||||
for (int i = 0; i < numVerts; i++) {
|
||||
theBound += verts[i].pos;
|
||||
}
|
||||
data._bound = theBound;
|
||||
*/
|
||||
|
||||
data._isVisible = (numVerts > 0);
|
||||
|
||||
//data._bound = theBound;
|
||||
|
||||
data._indexBuffer->resize(sizeof(uint16_t) * numVerts);
|
||||
uint16_t* indices = (uint16_t*)data._indexBuffer->editData();
|
||||
for (int i = 0; i < numVerts; i++) {
|
||||
|
|
Loading…
Reference in a new issue