]> git.tdb.fi Git - libs/gl.git/commitdiff
Don't try to refresh a non-existent vertex setup
authorMikko Rasa <tdb@tdb.fi>
Mon, 10 Oct 2022 13:23:19 +0000 (16:23 +0300)
committerMikko Rasa <tdb@tdb.fi>
Mon, 10 Oct 2022 13:23:19 +0000 (16:23 +0300)
Compute pipelines don't use one

source/backends/vulkan/pipelinestate_backend.cpp

index 9e6db92fd3b8e2a3a07ccfef9f2e8f490a0df064..612c65e36c3b4b7d7042320b17448a0657d951d9 100644 (file)
@@ -39,7 +39,7 @@ void VulkanPipelineState::update() const
 
        unapplied |= changes&(PipelineState::VIEWPORT|PipelineState::SCISSOR|PipelineState::VERTEX_SETUP);
 
-       if(changes&PipelineState::VERTEX_SETUP)
+       if((changes&PipelineState::VERTEX_SETUP) && self.vertex_setup)
                self.vertex_setup->refresh();
 
        if(changes&PipelineState::SHPROG)