From 390bdd2a275f9b3a242fc11725a92cca2c187797 Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Thu, 4 Nov 2010 17:21:56 +0000 Subject: [PATCH] cogl-primitive: Fix the texture attribute offsets The offsets for the texture coordinate attributes in the convenience constructors were all wrong. --- clutter/cogl/cogl/cogl-primitive.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/clutter/cogl/cogl/cogl-primitive.c b/clutter/cogl/cogl/cogl-primitive.c index a9dc7da4c..61d1077da 100644 --- a/clutter/cogl/cogl/cogl-primitive.c +++ b/clutter/cogl/cogl/cogl-primitive.c @@ -265,7 +265,7 @@ cogl_primitive_new_p2t2 (CoglVerticesMode mode, cogl_vertex_attribute_new (array, "cogl_tex_coord0_in", sizeof (CoglP2T2Vertex), - offsetof (CoglP2T2Vertex, x), + offsetof (CoglP2T2Vertex, s), 2, COGL_VERTEX_ATTRIBUTE_TYPE_FLOAT); attributes[2] = NULL; @@ -299,7 +299,7 @@ cogl_primitive_new_p3t2 (CoglVerticesMode mode, cogl_vertex_attribute_new (array, "cogl_tex_coord0_in", sizeof (CoglP3T2Vertex), - offsetof (CoglP3T2Vertex, x), + offsetof (CoglP3T2Vertex, s), 2, COGL_VERTEX_ATTRIBUTE_TYPE_FLOAT); attributes[2] = NULL; @@ -333,7 +333,7 @@ cogl_primitive_new_p2t2c4 (CoglVerticesMode mode, cogl_vertex_attribute_new (array, "cogl_tex_coord0_in", sizeof (CoglP2T2C4Vertex), - offsetof (CoglP2T2C4Vertex, x), + offsetof (CoglP2T2C4Vertex, s), 2, COGL_VERTEX_ATTRIBUTE_TYPE_FLOAT); attributes[2] = @@ -374,7 +374,7 @@ cogl_primitive_new_p3t2c4 (CoglVerticesMode mode, cogl_vertex_attribute_new (array, "cogl_tex_coord0_in", sizeof (CoglP3T2C4Vertex), - offsetof (CoglP3T2C4Vertex, x), + offsetof (CoglP3T2C4Vertex, s), 2, COGL_VERTEX_ATTRIBUTE_TYPE_FLOAT); attributes[2] =