mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-06-18 21:18:31 +02:00
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:
parent
3e810fe2d1
commit
97a98d9145
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue