[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
e6fb58e129
commit
954c0853cd
2 changed files with 8 additions and 0 deletions
|
@ -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 a new issue