From 933714331300a229852637d75257ec93c978a94b Mon Sep 17 00:00:00 2001 From: Arcady Goldmints-Orlov Date: Thu, 25 Apr 2024 19:14:26 -0400 Subject: [PATCH] Increase the TIntermediate::usedIo array In 0bbec2e8f, the code started using usedIo[4], however it never increased the size of the array to make that index actually valid. --- glslang/MachineIndependent/localintermediate.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glslang/MachineIndependent/localintermediate.h b/glslang/MachineIndependent/localintermediate.h index b453b146..c9eac27d 100644 --- a/glslang/MachineIndependent/localintermediate.h +++ b/glslang/MachineIndependent/localintermediate.h @@ -1251,7 +1251,7 @@ protected: std::unordered_set usedConstantId; // specialization constant ids used std::vector usedAtomics; // sets of bindings used by atomic counters - std::vector usedIo[4]; // sets of used locations, one for each of in, out, uniform, and buffers + std::vector usedIo[5]; // sets of used locations, one for each of in, out, uniform, and buffers std::vector usedIoRT[4]; // sets of used location, one for rayPayload/rayPayloadIN, // one for callableData/callableDataIn, one for hitObjectAttributeNV and // one for shaderrecordhitobjectNV