Added clearing of operations within sequence to ensure all resources are cleared

This commit is contained in:
Alejandro Saucedo
2020-11-03 20:54:30 +00:00
parent 9077e95fc9
commit 16f49a7c87

View File

@@ -244,6 +244,11 @@ Sequence::freeMemoryDestroyGPUResources()
SPDLOG_DEBUG("Kompute Sequence Destroyed CommandPool");
}
if (this->mOperations.size()) {
SPDLOG_INFO("Kompute Sequence clearing operations buffer");
this->mOperations.clear();
}
this->mIsInit = false;
}