1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Merge pull request #86522 from RandomShaper/fix_uset_rebind

RenderingDevice: Fix uniform sets wrongly assumed to be bound
This commit is contained in:
Rémi Verschelde
2024-01-02 21:32:25 +01:00
committed by GitHub

View File

@@ -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];
}