From cb97b07e23d37acceff9c487fbed6c3d3c21d370 Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Tue, 6 Jun 2017 16:19:07 +0200 Subject: Draw Manager: Prevent misuse of static draw context This is supposed to help catch bugs if referrencing stack data out of the draw loop context. No change is suppose to happen for users (specially because the changes here happens mostly on debug). It includes a change in the logic for render loop, to make sure DST is not accessed before we enter it - contribution by Campbell Barton. --- source/blender/draw/DRW_engine.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/blender/draw/DRW_engine.h') diff --git a/source/blender/draw/DRW_engine.h b/source/blender/draw/DRW_engine.h index 0aca41a970d..b780e86b9ec 100644 --- a/source/blender/draw/DRW_engine.h +++ b/source/blender/draw/DRW_engine.h @@ -65,6 +65,10 @@ void DRW_engine_viewport_data_size_get( void DRW_draw_view(const struct bContext *C); +void DRW_draw_render_loop_ex( + struct Depsgraph *graph, + struct ARegion *ar, struct View3D *v3d, + const struct bContext *evil_C); void DRW_draw_render_loop( struct Depsgraph *graph, struct ARegion *ar, struct View3D *v3d); -- cgit v1.2.3