mirror of
https://github.com/brl/mutter.git
synced 2024-12-24 12:02:04 +00:00
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
2c36b81996
commit
c6fbc8c567
@ -209,7 +209,7 @@ validate_cogl_attribute (const char *name,
|
|||||||
}
|
}
|
||||||
*name_id = COGL_VERTEX_ATTRIBUTE_NAME_ID_TEXTURE_COORD_ARRAY;
|
*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))
|
if (G_UNLIKELY (n_components != 3))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user