RenderingDevice: Fix uniform sets wrongly assumed to be bound
This commit is contained in:
parent
9d1cbab1c4
commit
1c5c8cf6ff
1 changed files with 2 additions and 2 deletions
|
@ -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++) {
|
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];
|
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++) {
|
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];
|
cl->state.sets[i].pipeline_expected_format = pformats[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue