Fixed bug by assigning pointer to heap instead of stack
This commit is contained in:
parent
441efcd8dd
commit
81d592e6e0
8 changed files with 58 additions and 35 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue