mirror of
https://github.com/RPCS3/glslang.git
synced 2024-11-24 11:50:06 +00:00
HLSL: Make fresh array sizes for TessLevelOuter and TessLevelInner arrays.
This prevents potentional sharing from inadvertently affecting other arrays.
This commit is contained in:
parent
4baebea8d6
commit
01109546d8
@ -1484,11 +1484,7 @@ void HlslParseContext::fixBuiltInIoType(TType& type)
|
||||
|
||||
// Alter or set array size as needed.
|
||||
if (requiredArraySize > 0) {
|
||||
if (type.isArray()) {
|
||||
// Already an array. Fix the size.
|
||||
type.changeOuterArraySize(requiredArraySize);
|
||||
} else {
|
||||
// it wasn't an array, but needs to be.
|
||||
if (!type.isArray() || type.getOuterArraySize() != requiredArraySize) {
|
||||
TArraySizes arraySizes;
|
||||
arraySizes.addInnerSize(requiredArraySize);
|
||||
type.newArraySizes(arraySizes);
|
||||
|
Loading…
Reference in New Issue
Block a user