Fix an improper use of VariableRowCount to AttributeRegisterCount in ProgramBinary.

This is a regression from the non-square matrix uniforms implementation.

TRAC #23269

Signed-off-by: Geoff Lang
Signed-off-by: Nicolas Capens
Authored-by: Jamie Madill
diff --git a/src/libGLESv2/ProgramBinary.cpp b/src/libGLESv2/ProgramBinary.cpp
index 8c83988..eead8ab 100644
--- a/src/libGLESv2/ProgramBinary.cpp
+++ b/src/libGLESv2/ProgramBinary.cpp
@@ -2080,7 +2080,7 @@
 
             mLinkedAttribute[location] = *attribute;
 
-            int rows = VariableRowCount(attribute->type);
+            int rows = AttributeRegisterCount(attribute->type);
 
             if (rows + location > MAX_VERTEX_ATTRIBS)
             {
@@ -2120,7 +2120,7 @@
     for (int attributeIndex = 0; attributeIndex < MAX_VERTEX_ATTRIBS; )
     {
         int index = vertexShader->getSemanticIndex(mLinkedAttribute[attributeIndex].name);
-        int rows = std::max(AttributeRegisterCount(mLinkedAttribute[attributeIndex].type), 1);
+        int rows = AttributeRegisterCount(mLinkedAttribute[attributeIndex].type);
 
         for (int r = 0; r < rows; r++)
         {