From 87d04fc2c17e6d428b27633caf291af58099f98e Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Wed, 2 Apr 2025 23:00:27 +0800 Subject: [PATCH] properly initialize SwapChainPtr to nullptr --- thermion_dart/native/include/windows/vulkan/vulkan_platform.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thermion_dart/native/include/windows/vulkan/vulkan_platform.h b/thermion_dart/native/include/windows/vulkan/vulkan_platform.h index 9dfcc2d0..26c6e0d9 100644 --- a/thermion_dart/native/include/windows/vulkan/vulkan_platform.h +++ b/thermion_dart/native/include/windows/vulkan/vulkan_platform.h @@ -38,7 +38,7 @@ class TVulkanPlatform : public filament::backend::VulkanPlatform { VkResult present(SwapChainPtr handle, uint32_t index, VkSemaphore finishedDrawing) override; - SwapChainPtr current; + SwapChainPtr current = std::nullptr_t(); std::mutex mutex; uint32_t currentColorIndex = 0;