From 8e306f28444b5cd9d639c0f81ea96ddec38147dd Mon Sep 17 00:00:00 2001 From: ink-soul Date: Thu, 18 Apr 2024 10:04:21 +0800 Subject: [PATCH] fix destroy commandPool error --- base/VulkanDevice.hpp | 2 +- base/vulkanexamplebase.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/base/VulkanDevice.hpp b/base/VulkanDevice.hpp index 3d9736f..2411a0f 100644 --- a/base/VulkanDevice.hpp +++ b/base/VulkanDevice.hpp @@ -80,7 +80,7 @@ namespace vks ~VulkanDevice() { if (commandPool) { - vkDestroyCommandPool(logicalDevice, commandPool, nullptr); + //vkDestroyCommandPool(logicalDevice, commandPool, nullptr); } if (logicalDevice) { vkDestroyDevice(logicalDevice, nullptr); diff --git a/base/vulkanexamplebase.h b/base/vulkanexamplebase.h index 7d331fd..3658377 100644 --- a/base/vulkanexamplebase.h +++ b/base/vulkanexamplebase.h @@ -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; // 图片序列开始帧