cogl-primitive: Fix a typo in new_with_attributes_array

A typo in the g_return_val_if_fail was causing it to segfault.
This commit is contained in:
Neil Roberts 2010-11-04 16:54:20 +00:00
parent ec080f2db0
commit 7aa39f18a4

View File

@ -62,7 +62,7 @@ cogl_primitive_new_with_attributes_array (CoglVerticesMode mode,
CoglVertexAttribute *attribute = attributes[i];
cogl_object_ref (attribute);
g_return_val_if_fail (cogl_is_vertex_attribute (attributes), NULL);
g_return_val_if_fail (cogl_is_vertex_attribute (attribute), NULL);
g_array_append_val (primitive->attributes, attribute);
}