DRW: Fix incorrect Ubo Bind

This commit is contained in:
Clément Foucault 2017-09-13 17:44:02 +02:00
parent 4088c9fa68
commit 1fca11d5cb
1 changed files with 5 additions and 0 deletions

View File

@ -2054,6 +2054,11 @@ static void DRW_draw_pass_ex(DRWPass *pass, DRWShadingGroup *start_group, DRWSha
}
}
/* Clear Bound Ubos */
for (int i = 0; i < GPU_max_ubo_binds(); i++) {
RST.bound_ubos[i] = NULL;
}
if (DST.shader) {
GPU_shader_unbind();
DST.shader = NULL;