[Bf-blender-cvs] [0f320295228] master: Fix T77315 Overlay: Selection Highlighting not working with complex scene
Clément Foucault
noreply at git.blender.org
Thu Jun 4 12:57:28 CEST 2020
Commit: 0f320295228505b1b66c543c71f75ed828cfd87e
Author: Clément Foucault
Date: Thu Jun 4 12:57:13 2020 +0200
Branches: master
https://developer.blender.org/rB0f320295228505b1b66c543c71f75ed828cfd87e
Fix T77315 Overlay: Selection Highlighting not working with complex scene
Was caused by a UBO bind to the wrong slot.
===================================================================
M source/blender/draw/intern/draw_manager_exec.c
===================================================================
diff --git a/source/blender/draw/intern/draw_manager_exec.c b/source/blender/draw/intern/draw_manager_exec.c
index 144ce573460..d830ac10e33 100644
--- a/source/blender/draw/intern/draw_manager_exec.c
+++ b/source/blender/draw/intern/draw_manager_exec.c
@@ -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;
}
More information about the Bf-blender-cvs
mailing list