From 2da4e2be0a445052e6b984e93c6d232b157d1436 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Mon, 14 Sep 2020 19:52:49 +0200 Subject: Cleanup: GPUDebug: Use Vector instead of custom stack --- source/blender/gpu/intern/gpu_debug_private.hh | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'source/blender/gpu/intern/gpu_debug_private.hh') diff --git a/source/blender/gpu/intern/gpu_debug_private.hh b/source/blender/gpu/intern/gpu_debug_private.hh index 7432b02541e..1887e7c698a 100644 --- a/source/blender/gpu/intern/gpu_debug_private.hh +++ b/source/blender/gpu/intern/gpu_debug_private.hh @@ -25,14 +25,11 @@ #pragma once -namespace blender::gpu { +#include "BLI_string_ref.hh" +#include "BLI_vector.hh" -#define DEBUG_STACK_LEN 64 -#define DEBUG_STACK_NAME_LEN 128 +namespace blender::gpu { -struct DebugStack { - char names[DEBUG_STACK_LEN][DEBUG_STACK_NAME_LEN]; - int index = 0; -}; +typedef Vector DebugStack; } // namespace blender::gpu \ No newline at end of file -- cgit v1.2.3