Fix T77315 Overlay: Selection Highlighting not working with complex scene

Was caused by a UBO bind to the wrong slot.
This commit is contained in:
2020-06-04 12:57:13 +02:00
parent 78017916f7
commit 0f32029522

View File

@@ -953,7 +953,7 @@ static void draw_call_resource_bind(DRWCommandsState *state, const DRWResourceHa
}
if (state->obinfos_loc != -1) {
GPU_uniformbuffer_unbind(DST.vmempool->obinfos_ubo[state->resource_chunk]);
GPU_uniformbuffer_bind(DST.vmempool->obinfos_ubo[chunk], 1);
GPU_uniformbuffer_bind(DST.vmempool->obinfos_ubo[chunk], state->obinfos_loc);
}
state->resource_chunk = chunk;
}