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
This commit is contained in:
parent
aa4f63338c
commit
7ae61c3763
@ -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))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user