From 1c5c8cf6ff828e0b992a30ec4dc0a05cc961d8c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20J=2E=20Est=C3=A9banez?= Date: Tue, 26 Dec 2023 13:12:32 +0100 Subject: [PATCH] RenderingDevice: Fix uniform sets wrongly assumed to be bound --- servers/rendering/rendering_device.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/servers/rendering/rendering_device.cpp b/servers/rendering/rendering_device.cpp index a7f124c23cb0..02de55b44f31 100644 --- a/servers/rendering/rendering_device.cpp +++ b/servers/rendering/rendering_device.cpp @@ -4125,7 +4125,7 @@ void RenderingDevice::draw_list_bind_render_pipeline(DrawListID p_list, RID p_re } for (uint32_t i = 0; i < pcount; i++) { - dl->state.sets[i].bound = i < first_invalid_set; + dl->state.sets[i].bound = dl->state.sets[i].bound && i < first_invalid_set; dl->state.sets[i].pipeline_expected_format = pformats[i]; } @@ -4718,7 +4718,7 @@ void RenderingDevice::compute_list_bind_compute_pipeline(ComputeListID p_list, R } for (uint32_t i = 0; i < pcount; i++) { - cl->state.sets[i].bound = i >= first_invalid_set; + cl->state.sets[i].bound = cl->state.sets[i].bound && i < first_invalid_set; cl->state.sets[i].pipeline_expected_format = pformats[i]; }