mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-17 12:49:49 +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
|
||||
for (auto& iter : markerMap) {
|
||||
|
@ -403,6 +401,9 @@ void AnimDebugDraw::update() {
|
|||
}
|
||||
DebugDraw::getInstance().clearRays();
|
||||
|
||||
data._vertexBuffer->resize(sizeof(Vertex) * numVerts);
|
||||
data._vertexBuffer->setSubData<Vertex>(0, vertices);
|
||||
|
||||
assert((!numVerts && !v) || (numVerts == (v - &vertices[0])));
|
||||
|
||||
render::Item::Bound theBound;
|
||||
|
|
Loading…
Reference in a new issue