mirror of
https://github.com/brl/mutter.git
synced 2024-12-24 12:02:04 +00:00
[cogl-texture] Reset size of vertex log after drawing a polygon
Otherwise trying to render a rectangle after a polygon doesn't work because it expects the array to be empty when it starts logging vertices.
This commit is contained in:
parent
eda1d08f76
commit
e72042648c
@ -3096,5 +3096,9 @@ cogl_polygon (CoglTextureVertex *vertices,
|
||||
stride,
|
||||
use_color,
|
||||
fallback_mask);
|
||||
|
||||
/* Reset the size of the logged vertex array because rendering
|
||||
rectangles expects it to start at 0 */
|
||||
g_array_set_size (ctx->logged_vertices, 0);
|
||||
}
|
||||
|
||||
|
@ -3193,5 +3193,9 @@ cogl_polygon (CoglTextureVertex *vertices,
|
||||
stride,
|
||||
use_color,
|
||||
fallback_mask);
|
||||
|
||||
/* Reset the size of the logged vertex array because rendering
|
||||
rectangles expects it to start at 0 */
|
||||
g_array_set_size (ctx->logged_vertices, 0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user