Fix an improper usage of getCols, which should be getNominalSize, in unsigned int vector code.
TRAC #23263
Signed-off-by: Shannon Woods
Author: Jamie Madill
diff --git a/src/compiler/OutputHLSL.cpp b/src/compiler/OutputHLSL.cpp
index b638e12..f9332ab 100644
--- a/src/compiler/OutputHLSL.cpp
+++ b/src/compiler/OutputHLSL.cpp
@@ -2924,7 +2924,7 @@
case 4: return "int4";
}
case EbtUInt:
- switch (type.getCols())
+ switch (type.getNominalSize())
{
case 1: return "uint";
case 2: return "uint2";
@@ -3501,7 +3501,7 @@
}
else if (type.isVector())
{
- switch(type.getCols())
+ switch(type.getNominalSize())
{
case 2: return GL_UNSIGNED_INT_VEC2;
case 3: return GL_UNSIGNED_INT_VEC3;