From: Mikko Rasa Date: Tue, 19 Apr 2022 10:01:37 +0000 (+0300) Subject: Update pipeline handle if framebuffer changes X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=1cbc8df4a72799feada39767e80973f4c93ae523;p=libs%2Fgl.git Update pipeline handle if framebuffer changes The pipeline's sample count must match that of the render pass. --- 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())