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 <gmmatsumura01@bvsd.org>
This commit is contained in:
George Matsumura 2020-07-03 23:48:35 -06:00
parent 3e810fe2d1
commit 97a98d9145

View file

@ -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;