Updating sequence to have isInit until init run

This commit is contained in:
Alejandro Saucedo 2021-02-09 19:19:39 +00:00
parent 650975838c
commit b34984b713
2 changed files with 13 additions and 11 deletions

View file

@ -20,7 +20,7 @@ Sequence::Sequence(std::shared_ptr<vk::PhysicalDevice> physicalDevice,
this->mDevice = device;
this->mComputeQueue = computeQueue;
this->mQueueIndex = queueIndex;
this->mIsInit = true;
this->mIsInit = false;
}
Sequence::~Sequence()
@ -203,6 +203,8 @@ Sequence::isInit()
void
Sequence::freeMemoryDestroyGPUResources()
{
SPDLOG_DEBUG("Kompute Sequence freeMemoryDestroyGPUResources called");
if (!this->mIsInit) {
SPDLOG_ERROR("Kompute Sequence freeMemoryDestroyGPUResources called "
"but Sequence is not initialized so there's no relevant "