From 198fb46eb628051dd3a800b586bfca63ceb71aa2 Mon Sep 17 00:00:00 2001 From: Alejandro Saucedo Date: Sat, 27 Feb 2021 15:28:24 +0000 Subject: [PATCH] Fixed integration tests fails due to pipeline not freed --- src/Algorithm.cpp | 1 + src/Manager.cpp | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Algorithm.cpp b/src/Algorithm.cpp index f00bc1090..6215dd090 100644 --- a/src/Algorithm.cpp +++ b/src/Algorithm.cpp @@ -332,6 +332,7 @@ Algorithm::createPipeline() vk::Pipeline pipeline = this->mDevice->createComputePipeline(*this->mPipelineCache, pipelineInfo); this->mPipeline = std::make_shared(pipeline); + this->mFreePipeline = true; #endif // TODO: Update to consistent diff --git a/src/Manager.cpp b/src/Manager.cpp index 9f25e1826..ea152f1a8 100644 --- a/src/Manager.cpp +++ b/src/Manager.cpp @@ -117,7 +117,6 @@ Manager::destroy() { if (this->mDebugReportCallback) { this->mInstance->destroyDebugReportCallbackEXT( this->mDebugReportCallback, nullptr, this->mDebugDispatcher); - this->mInstance = nullptr; KP_LOG_DEBUG("Kompute Manager Destroyed Debug Report Callback"); } #endif