projects
/
profile
/
ivi
/
clutter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c36b81
)
cogl-vertex-attribute: Fix the name of the cogl_normal_in attribute
author
Neil Roberts
<neil@linux.intel.com>
Wed, 22 Dec 2010 01:45:09 +0000
(
01:45
+0000)
committer
Neil 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
patch
|
blob
|
history
diff --git
a/clutter/cogl/cogl/cogl-vertex-attribute.c
b/clutter/cogl/cogl/cogl-vertex-attribute.c
index
fe98e30
..
b1652bd
100644
(file)
--- a/
clutter/cogl/cogl/cogl-vertex-attribute.c
+++ b/
clutter/cogl/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))
{