From 9dcce5be90614fef9b44cb0606a930238009b3d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Sat, 17 Sep 2022 12:17:45 +0200 Subject: 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. --- source/blender/draw/intern/draw_debug.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/draw') 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(); } -- cgit v1.2.3