DRW: Fix couple of issues in DRW_draw_select_id
Theses 2 function calls are mandatory.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user