Merge pull request #83639 from stoofin/frustum-buffer-size

Fix shadow map debug visualization camera frustum index buffer size
This commit is contained in:
Rémi Verschelde 2023-10-20 15:12:34 +02:00
commit 2a995c09ac
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 2 additions and 2 deletions

View File

@ -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;