From 3e8b4f685a146b491791f3b97625fdf9925faf5c Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 16 Mar 2022 13:34:37 +0200 Subject: [PATCH] Initialize pipeline handle --- source/backends/vulkan/pipelinestate_backend.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/backends/vulkan/pipelinestate_backend.h b/source/backends/vulkan/pipelinestate_backend.h index 085309e6..ab462ed5 100644 --- a/source/backends/vulkan/pipelinestate_backend.h +++ b/source/backends/vulkan/pipelinestate_backend.h @@ -19,7 +19,7 @@ protected: Device &device; mutable unsigned changes = 0; mutable unsigned unapplied = 0; - mutable VkPipeline handle; + mutable VkPipeline handle = 0; mutable std::vector descriptor_set_slots; VulkanPipelineState(); -- 2.45.2