properly initialize SwapChainPtr to nullptr

This commit is contained in:
Nick Fisher
2025-04-02 23:00:27 +08:00
parent a3f05e353d
commit 87d04fc2c1

View File

@@ -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;