Fix matrix accessor getCols to correct getNominalSize in code that could trigger a debug assertion failure.
Was breaking the ES2-CTS build test in Debug mode.
TRAC #23263
Signed-off-by: Geoff Lang
Signed-off-by: Shannon Woods
Author: Jamie Madill
diff --git a/src/compiler/OutputHLSL.cpp b/src/compiler/OutputHLSL.cpp
index b7e63fc..b638e12 100644
--- a/src/compiler/OutputHLSL.cpp
+++ b/src/compiler/OutputHLSL.cpp
@@ -3169,7 +3169,7 @@
{
remainingComponents -= parameter.getObjectSize();
}
- else if (remainingComponents < parameter.getCols())
+ else if (remainingComponents < parameter.getNominalSize())
{
switch (remainingComponents)
{