Skip to content

Commit

Permalink
Merge pull request #86522 from RandomShaper/fix_uset_rebind
Browse files Browse the repository at this point in the history
RenderingDevice: Fix uniform sets wrongly assumed to be bound
  • Loading branch information
akien-mga authored Jan 2, 2024
2 parents 2158f88 + 1c5c8cf commit 07b8860
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions servers/rendering/rendering_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}

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

Expand Down

0 comments on commit 07b8860

Please sign in to comment.