mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 21:12:53 +02:00
Merge pull request #8361 from hyperlogic/bug-fix/avatar-debug-draw
Bug fix for avatar debug marker rendering.
This commit is contained in:
commit
7740420b96
1 changed files with 3 additions and 2 deletions
|
@ -374,8 +374,6 @@ void AnimDebugDraw::update() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
data._vertexBuffer->resize(sizeof(Vertex) * numVerts);
|
|
||||||
data._vertexBuffer->setSubData<Vertex>(0, vertices);
|
|
||||||
|
|
||||||
// draw markers from shared DebugDraw singleton
|
// draw markers from shared DebugDraw singleton
|
||||||
for (auto& iter : markerMap) {
|
for (auto& iter : markerMap) {
|
||||||
|
@ -403,6 +401,9 @@ void AnimDebugDraw::update() {
|
||||||
}
|
}
|
||||||
DebugDraw::getInstance().clearRays();
|
DebugDraw::getInstance().clearRays();
|
||||||
|
|
||||||
|
data._vertexBuffer->resize(sizeof(Vertex) * numVerts);
|
||||||
|
data._vertexBuffer->setSubData<Vertex>(0, vertices);
|
||||||
|
|
||||||
assert((!numVerts && !v) || (numVerts == (v - &vertices[0])));
|
assert((!numVerts && !v) || (numVerts == (v - &vertices[0])));
|
||||||
|
|
||||||
render::Item::Bound theBound;
|
render::Item::Bound theBound;
|
||||||
|
|
Loading…
Reference in a new issue