]> git.tdb.fi Git - libs/gl.git/commitdiff
Initialize pipeline handle
authorMikko Rasa <tdb@tdb.fi>
Wed, 16 Mar 2022 11:34:37 +0000 (13:34 +0200)
committerMikko Rasa <tdb@tdb.fi>
Wed, 16 Mar 2022 11:34:37 +0000 (13:34 +0200)
source/backends/vulkan/pipelinestate_backend.h

index 085309e61872a82b058d593fa8af9d546836f613..ab462ed5b415e059dacad36c7476cd65bfff4ec1 100644 (file)
@@ -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<unsigned> descriptor_set_slots;
 
        VulkanPipelineState();