mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 22:36:57 +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));
|
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++) {
|
||||||
|
|
Loading…
Reference in a new issue