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>2020-10-23 20:29:27 +0300
committerHoward Trickey <howard.trickey@gmail.com>2020-10-24 21:07:05 +0300
commit0d1f65e5166c4822d9e01e7d3ce20f7df972550b (patch)
treea93ada3a93d26fbdc3e6ebdfe762389ef292b1a7 /source/blender/gpu/intern/gpu_debug.cc
parente856443c99d5175b3de6370590142a8d03054bb3 (diff)
GPU: Use CLOG to for debug output
This removes the escape color control caracters when the output does not supports it (i.e: file output, windows cmd).
Diffstat (limited to 'source/blender/gpu/intern/gpu_debug.cc')
-rw-r--r--source/blender/gpu/intern/gpu_debug.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_debug.cc b/source/blender/gpu/intern/gpu_debug.cc
index d7944f0de50..63e7024b74b 100644
--- a/source/blender/gpu/intern/gpu_debug.cc
+++ b/source/blender/gpu/intern/gpu_debug.cc
@@ -74,7 +74,7 @@ void GPU_debug_get_groups_names(int name_buf_len, char *r_name_buf)
for (StringRef &name : stack) {
sz += BLI_snprintf_rlen(r_name_buf + sz, name_buf_len - sz, "%s > ", name.data());
}
- r_name_buf[sz - 2] = ':';
+ r_name_buf[sz - 3] = '\0';
}
/* Return true if inside a debug group with the same name. */