Fix T69855: 3DView glitches involving depth buffer

The problem is that `DST.vmempool->passes` was not cleared, so passes
previously created in another drw function were being reused.
This commit is contained in:
Germano Cavalcante 2019-09-19 17:25:03 -03:00
parent b11272a007
commit 27642f24e1
Notes: blender-bot 2023-02-14 09:24:53 +01:00
Referenced by issue #69855, Wireframes & 3d Cursor Bug.
1 changed files with 2 additions and 0 deletions

View File

@ -2534,6 +2534,8 @@ static void drw_draw_depth_loop_imp(struct Depsgraph *depsgraph,
drw_engines_disable();
drw_viewport_cache_resize();
#ifdef DEBUG
/* Avoid accidental reuse. */
drw_state_ensure_not_reused(&DST);