[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:
Neil Roberts 2009-01-28 12:00:01 +00:00
parent eda1d08f76
commit e72042648c
2 changed files with 8 additions and 0 deletions

View File

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

View File

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