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:
authorClément Foucault <foucault.clem@gmail.com>2022-09-17 13:17:45 +0300
committerClément Foucault <foucault.clem@gmail.com>2022-09-17 13:27:00 +0300
commit9dcce5be90614fef9b44cb0606a930238009b3d0 (patch)
tree9dbe7a3e8609b65dba79d3884c131c492b28de9f /source/blender/draw
parenta1aafddcbeeff23df34fa5ecb8486c59ef31e7c1 (diff)
DRW: Debug: Fix row / column counters not being reset on init
This fixes the issues with CPU debug print not being in the right order.
Diffstat (limited to 'source/blender/draw')
-rw-r--r--source/blender/draw/intern/draw_debug.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/draw/intern/draw_debug.cc b/source/blender/draw/intern/draw_debug.cc
index b0662a42ea0..811185395fd 100644
--- a/source/blender/draw/intern/draw_debug.cc
+++ b/source/blender/draw/intern/draw_debug.cc
@@ -85,6 +85,9 @@ void DebugDraw::init()
gpu_draw_buf_.command.instance_first_array = 0;
gpu_draw_buf_used = false;
+ print_col_ = 0;
+ print_row_ = 0;
+
modelmat_reset();
}