mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 06:48:04 +02:00
added some asserts to test future mistakes that would cause render item leaks
This commit is contained in:
parent
e47b049200
commit
021a6e689d
1 changed files with 3 additions and 0 deletions
|
@ -1153,6 +1153,9 @@ void Model::segregateMeshGroups() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Q_ASSERT(_renderItems.isEmpty()); // We should not have any existing renderItems if we enter this section of code
|
||||||
|
Q_ASSERT(_renderItemsSet.isEmpty()); // We should not have any existing renderItemsSet if we enter this section of code
|
||||||
|
|
||||||
_renderItemsSet.clear();
|
_renderItemsSet.clear();
|
||||||
|
|
||||||
// Run through all of the meshes, and place them into their segregated, but unsorted buckets
|
// Run through all of the meshes, and place them into their segregated, but unsorted buckets
|
||||||
|
|
Loading…
Reference in a new issue