]> git.tdb.fi Git - libs/gl.git/commitdiff
Update pipeline handle if framebuffer changes
authorMikko Rasa <tdb@tdb.fi>
Tue, 19 Apr 2022 10:01:37 +0000 (13:01 +0300)
committerMikko Rasa <tdb@tdb.fi>
Tue, 19 Apr 2022 10:01:37 +0000 (13:01 +0300)
The pipeline's sample count must match that of the render pass.

source/backends/vulkan/pipelinestate_backend.cpp

index 07af5a7b9ba47129142720eab8a251f3e6fee5b9..1578f9976d61452b200fd0066bb02f16ca4074e5 100644 (file)
@@ -48,7 +48,7 @@ void VulkanPipelineState::update() const
                push_const_compat = hash_update<32>(push_const_compat, self.shprog->get_push_constants_size());
        }
 
-       constexpr unsigned graphics_mask = PipelineState::VERTEX_SETUP|PipelineState::FACE_CULL|
+       constexpr unsigned graphics_mask = PipelineState::FRAMEBUFFER|PipelineState::VERTEX_SETUP|PipelineState::FACE_CULL|
                PipelineState::DEPTH_TEST|PipelineState::STENCIL_TEST|PipelineState::BLEND|PipelineState::PRIMITIVE_TYPE;
        unsigned pipeline_mask = PipelineState::SHPROG;
        if(!self.shprog->is_compute())