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:
authormano-wii <germano.costa@ig.com.br>2019-03-27 17:05:48 +0300
committermano-wii <germano.costa@ig.com.br>2019-03-27 17:06:15 +0300
commit34c2185af4d87e6b6d9ba021ed3c78148d1721cd (patch)
treeb6447bff599e7268b89699147fe93c72169a1919
parent5a1a633d0435531c2dabf3442e2a3ca72b4a6da3 (diff)
Fix debug error on recent commit.
-rw-r--r--source/blender/draw/intern/draw_manager.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/draw/intern/draw_manager.c b/source/blender/draw/intern/draw_manager.c
index 3e5adc8f26b..6e92c8d1356 100644
--- a/source/blender/draw/intern/draw_manager.c
+++ b/source/blender/draw/intern/draw_manager.c
@@ -2456,6 +2456,11 @@ void DRW_draw_depth_loop(
GPU_matrix_pop();
GPU_matrix_pop_projection();
+
+#ifdef DEBUG
+ /* Avoid accidental reuse. */
+ drw_state_ensure_not_reused(&DST);
+#endif
}
/**
@@ -2537,11 +2542,6 @@ void DRW_framebuffer_select_id_release(ARegion *ar)
glEnable(GL_DITHER);
DRW_opengl_context_disable();
-
-#ifdef DEBUG
- /* Avoid accidental reuse. */
- drw_state_ensure_not_reused(&DST);
-#endif
}