From 7ae61c3763ab0c26e9c191f447a37d800207dafd Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Wed, 22 Dec 2010 01:45:09 +0000 Subject: [PATCH] cogl-vertex-attribute: Fix the name of the cogl_normal_in attribute 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 --- cogl/cogl-vertex-attribute.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogl/cogl-vertex-attribute.c b/cogl/cogl-vertex-attribute.c index fe98e304a..b1652bda1 100644 --- a/cogl/cogl-vertex-attribute.c +++ b/cogl/cogl-vertex-attribute.c @@ -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)) {