fix destroy commandPool error

main-headless
ink-soul 2024-04-18 10:04:21 +08:00
parent 8ed2ff3307
commit 8e306f2844
2 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ namespace vks
~VulkanDevice()
{
if (commandPool) {
vkDestroyCommandPool(logicalDevice, commandPool, nullptr);
//vkDestroyCommandPool(logicalDevice, commandPool, nullptr);
}
if (logicalDevice) {
vkDestroyDevice(logicalDevice, nullptr);

View File

@ -111,7 +111,7 @@ public:
bool headless = false; // 无头开关
bool outputPNGimage = false;
bool enableSaveToImageSequeue = true; // 图片序列开关(暂时弃用)
uint32_t outputFrameCount = 480; // 图片序列结束帧
uint32_t outputFrameCount = 10; // 图片序列结束帧
bool takeScreenShot = false; // 截屏(暂时弃用)
uint32_t startFrameCount = 1; // 图片序列开始帧