Implemented aliased attributes support
TRAC #11092
Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch

Author:    Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@177 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/src/libGLESv2/Context.cpp b/src/libGLESv2/Context.cpp
index 5f7c8cf..d6df598 100644
--- a/src/libGLESv2/Context.cpp
+++ b/src/libGLESv2/Context.cpp
@@ -1390,14 +1390,14 @@
     device->SetRenderState(D3DRS_DITHERENABLE, dither ? TRUE : FALSE);
 }
 
-// Fill in the programAttribute field of the array of TranslatedAttributes based on the active GLSL program.
+// Fill in the semanticIndex field of the array of TranslatedAttributes based on the active GLSL program.
 void Context::lookupAttributeMapping(TranslatedAttribute *attributes)
 {
     for (int i = 0; i < MAX_VERTEX_ATTRIBS; i++)
     {
         if (attributes[i].enabled)
         {
-            attributes[i].programAttribute = getCurrentProgram()->getInputMapping(i);
+            attributes[i].semanticIndex = getCurrentProgram()->getSemanticIndex(i);
         }
     }
 }