mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +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;
|
||||
}
|
||||
|
||||
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();
|
||||
|
||||
// Run through all of the meshes, and place them into their segregated, but unsorted buckets
|
||||
|
|
Loading…
Reference in a new issue