cogl-vertex-attribute: Fix the name of the cogl_normal_in attribute
authorNeil Roberts <neil@linux.intel.com>
Wed, 22 Dec 2010 01:45:09 +0000 (01:45 +0000)
committerNeil Roberts <neil@linux.intel.com>
Mon, 10 Jan 2011 14:29:25 +0000 (14:29 +0000)
The builtin vertex attribute for the normals was incorrectly checked
for as 'cogl_normal' however it is defined as cogl_normal_in in the
shader boilerplate and for the name generated by CoglVertexBuffer.

http://bugzilla.clutter-project.org/show_bug.cgi?id=2499

clutter/cogl/cogl/cogl-vertex-attribute.c

index fe98e30..b1652bd 100644 (file)
@@ -209,7 +209,7 @@ validate_cogl_attribute (const char *name,
        }
       *name_id = COGL_VERTEX_ATTRIBUTE_NAME_ID_TEXTURE_COORD_ARRAY;
     }
-  else if (strcmp (name, "normal") == 0)
+  else if (strcmp (name, "normal_in") == 0)
     {
       if (G_UNLIKELY (n_components != 3))
         {