mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 17:28:13 +02:00
Must drain the primitive construction queue during release
This commit is contained in:
parent
a3ce69bcbb
commit
b1dd849a1a
1 changed files with 4 additions and 0 deletions
|
@ -437,11 +437,15 @@ void PrimitiveRenderer::terminateBookkeeping() {
|
||||||
while (_deconstructTriElementIndex.remove() != 0)
|
while (_deconstructTriElementIndex.remove() != 0)
|
||||||
;
|
;
|
||||||
|
|
||||||
|
while (_constructPrimitiveIndex.remove() != 0)
|
||||||
|
;
|
||||||
|
|
||||||
// Reset the counters
|
// Reset the counters
|
||||||
_vertexElementCount = 1;
|
_vertexElementCount = 1;
|
||||||
_triElementCount = 1;
|
_triElementCount = 1;
|
||||||
_primitiveCount = 1;
|
_primitiveCount = 1;
|
||||||
|
|
||||||
|
_cpuMemoryUsage = sizeof(PrimitiveRenderer) + _primitives.size() * sizeof(Primitive *);
|
||||||
}
|
}
|
||||||
|
|
||||||
void PrimitiveRenderer::constructElements(
|
void PrimitiveRenderer::constructElements(
|
||||||
|
|
Loading…
Reference in a new issue