From 97a98d9145f4dea411a2e42f827a4e50b02edcf1 Mon Sep 17 00:00:00 2001 From: George Matsumura Date: Fri, 3 Jul 2020 23:48:35 -0600 Subject: [PATCH] cogl: Fix aliased vertex buffer offset This fixes a bug in which the texture coordinate attributes were being read from the wrong location in the mapped buffer, due to a typo in the original code. Signed-off-by: George Matsumura --- src/cairo-cogl-surface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cairo-cogl-surface.c b/src/cairo-cogl-surface.c index 9353630dd..8f0286ab3 100644 --- a/src/cairo-cogl-surface.c +++ b/src/cairo-cogl-surface.c @@ -675,7 +675,7 @@ _cairo_cogl_traps_to_composite_prim_p2t2 (cairo_cogl_surface_t *surface, CoglAttribute *tex_coords = cogl_attribute_new (buffer, "cogl_tex_coord0_in", sizeof (CoglVertexP2), - 0, + offset, 2, COGL_ATTRIBUTE_TYPE_FLOAT); CoglPrimitive *prim;