Fixed bug by assigning pointer to heap instead of stack

This commit is contained in:
Alejandro Saucedo 2020-08-17 07:07:23 +01:00
parent 441efcd8dd
commit 81d592e6e0
8 changed files with 58 additions and 35 deletions

View file

@ -612,9 +612,9 @@ main()
#endif
try {
//VulkanCompute* vulkanExample = new VulkanCompute();
//spdlog::info("Finished.");
//delete (vulkanExample);
VulkanCompute* vulkanExample = new VulkanCompute();
spdlog::info("Finished.");
delete (vulkanExample);
// Run Kompute
spdlog::info("Creating manager");
@ -626,5 +626,8 @@ main()
} catch (const std::exception& exc) {
spdlog::error(exc.what());
return 1;
} catch (...) {
spdlog::error("Uncaught exception");
return 1;
}
}