From 1cbc8df4a72799feada39767e80973f4c93ae523 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Tue, 19 Apr 2022 13:01:37 +0300 Subject: [PATCH] Update pipeline handle if framebuffer changes The pipeline's sample count must match that of the render pass. --- source/backends/vulkan/pipelinestate_backend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/backends/vulkan/pipelinestate_backend.cpp b/source/backends/vulkan/pipelinestate_backend.cpp index 07af5a7b..1578f997 100644 --- a/source/backends/vulkan/pipelinestate_backend.cpp +++ b/source/backends/vulkan/pipelinestate_backend.cpp @@ -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()) -- 2.43.0