Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2017-06-06 17:19:07 +0300
committerDalai Felinto <dfelinto@gmail.com>2017-06-06 17:20:39 +0300
commitcb97b07e23d37acceff9c487fbed6c3d3c21d370 (patch)
treedb34a2c170ce017e47e7fbd0a9f1b19ba637f1e8 /source/blender/draw/DRW_engine.h
parentae6bfe9c19c5d64caae00530653cf43c23fbc288 (diff)
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.
Diffstat (limited to 'source/blender/draw/DRW_engine.h')
-rw-r--r--source/blender/draw/DRW_engine.h4
1 files changed, 4 insertions, 0 deletions
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);