mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 01:50:42 -05:00
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:
parent
ec080f2db0
commit
7aa39f18a4
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user