From 57a839db170507a46f6493081b20c767df04bf2d Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 22 Apr 2017 18:38:24 -0700 Subject: [PATCH] Vulkan: NULL initialize some handles. Was getting crashes until I realized buffered rendering was on. --- GPU/Vulkan/FramebufferVulkan.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GPU/Vulkan/FramebufferVulkan.h b/GPU/Vulkan/FramebufferVulkan.h index 3f44706d14..a32a4f1e2f 100644 --- a/GPU/Vulkan/FramebufferVulkan.h +++ b/GPU/Vulkan/FramebufferVulkan.h @@ -152,8 +152,8 @@ private: // The command buffer of the current framebuffer pass being rendered to. // One framebuffer can be used as a texturing source at multiple times in a frame, // but then the contents have to be copied out into a new texture every time. - VkCommandBuffer curCmd_; - VkCommandBuffer cmdInit_; + VkCommandBuffer curCmd_ = VK_NULL_HANDLE; + VkCommandBuffer cmdInit_ = VK_NULL_HANDLE; // Used by DrawPixels VulkanTexture *drawPixelsTex_;