mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
DRW: Fix couple of issues in DRW_draw_select_id
Theses 2 function calls are mandatory.
This commit is contained in:
parent
85f90ed6fd
commit
c3d037e88f
1 changed files with 4 additions and 1 deletions
|
|
@ -2562,7 +2562,6 @@ void DRW_draw_select_id(Depsgraph *depsgraph, ARegion *ar, View3D *v3d, const rc
|
|||
|
||||
/* Reset before using it. */
|
||||
drw_state_prepare_clean_for_draw(&DST);
|
||||
DST.buffer_finish_called = true;
|
||||
|
||||
/* Instead of 'DRW_context_state_init(C, &DST.draw_ctx)', assign from args */
|
||||
DST.draw_ctx = (DRWContextState){
|
||||
|
|
@ -2600,6 +2599,8 @@ void DRW_draw_select_id(Depsgraph *depsgraph, ARegion *ar, View3D *v3d, const rc
|
|||
}
|
||||
|
||||
drw_engines_cache_finish();
|
||||
|
||||
DRW_render_instance_buffer_finish();
|
||||
}
|
||||
|
||||
/* Start Drawing */
|
||||
|
|
@ -2609,6 +2610,8 @@ void DRW_draw_select_id(Depsgraph *depsgraph, ARegion *ar, View3D *v3d, const rc
|
|||
|
||||
drw_engines_disable();
|
||||
|
||||
drw_viewport_cache_resize();
|
||||
|
||||
#ifdef DEBUG
|
||||
/* Avoid accidental reuse. */
|
||||
drw_state_ensure_not_reused(&DST);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue