From 1a2b66d4fce3ed56e2685a70dc91d9c82e83c2d7 Mon Sep 17 00:00:00 2001 From: stoofin <44447892+stoofin@users.noreply.github.com> Date: Thu, 19 Oct 2023 13:48:11 -0700 Subject: [PATCH] Fix shadow debug frustum index buffer size --- servers/rendering/renderer_rd/effects/debug_effects.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/servers/rendering/renderer_rd/effects/debug_effects.cpp b/servers/rendering/renderer_rd/effects/debug_effects.cpp index abcd9bbfae5..3033d423758 100644 --- a/servers/rendering/renderer_rd/effects/debug_effects.cpp +++ b/servers/rendering/renderer_rd/effects/debug_effects.cpp @@ -108,7 +108,7 @@ void DebugEffects::_create_frustum_arrays() { // Create our index_array PackedByteArray data; - data.resize(6 * 2 * 3 * 4); + data.resize(6 * 2 * 3 * 2); { uint8_t *w = data.ptrw(); uint16_t *p16 = (uint16_t *)w; @@ -142,7 +142,7 @@ void DebugEffects::_create_frustum_arrays() { // Create our lines_array PackedByteArray data; - data.resize(12 * 2 * 4); + data.resize(12 * 2 * 2); { uint8_t *w = data.ptrw(); uint16_t *p16 = (uint16_t *)w;