Skip to content

Commit

Permalink
Use correct type for var storing returned value (#2263)
Browse files Browse the repository at this point in the history
  • Loading branch information
zoddicus authored Jun 9, 2020
1 parent 08328fe commit 68b2e15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glslang/MachineIndependent/reflection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ class TReflectionTraverser : public TIntermTraverser {
if (type.isArray()) {
TType derefType(type, 0);
for (int e = 0; e < type.getOuterArraySize(); ++e) {
uint32_t memberBlockIndex = addBlockName(name + "[" + String(e) + "]", derefType, size);
int memberBlockIndex = addBlockName(name + "[" + String(e) + "]", derefType, size);
if (e == 0)
blockIndex = memberBlockIndex;
}
Expand Down

0 comments on commit 68b2e15

Please sign in to comment.