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:
parent
b11272a007
commit
27642f24e1
Notes:
blender-bot
2023-02-14 09:24:53 +01:00
Referenced by issue #69855, Wireframes & 3d Cursor Bug.
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue