diff options
author | stoofin <44447892+stoofin@users.noreply.github.com> | 2023-10-19 13:48:11 -0700 |
---|---|---|
committer | stoofin <44447892+stoofin@users.noreply.github.com> | 2023-10-19 13:48:11 -0700 |
commit | 1a2b66d4fce3ed56e2685a70dc91d9c82e83c2d7 (patch) | |
tree | ef2c0706c1de556d36f31594ac837e9725e34166 /servers/rendering/renderer_rd/effects/debug_effects.cpp | |
parent | f8818f85e6c43cdf1277e8ae85eba19ca0a003b0 (diff) | |
download | redot-engine-1a2b66d4fce3ed56e2685a70dc91d9c82e83c2d7.tar.gz |
Fix shadow debug frustum index buffer size
Diffstat (limited to 'servers/rendering/renderer_rd/effects/debug_effects.cpp')
-rw-r--r-- | servers/rendering/renderer_rd/effects/debug_effects.cpp | 4 |
1 files 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 abcd9bbfae..3033d42375 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; |