Commit a9f52472 by Jamie Madill Committed by Shannon Woods

Fix matrix accessor getCols to correct getNominalSize in code that could trigger…

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
parent 74eb9155
......@@ -3169,7 +3169,7 @@ void OutputHLSL::addConstructor(const TType &type, const TString &name, const TI
{
remainingComponents -= parameter.getObjectSize();
}
else if (remainingComponents < parameter.getCols())
else if (remainingComponents < parameter.getNominalSize())
{
switch (remainingComponents)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment