[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,
|
stride,
|
||||||
use_color,
|
use_color,
|
||||||
fallback_mask);
|
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,
|
stride,
|
||||||
use_color,
|
use_color,
|
||||||
fallback_mask);
|
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…
x
Reference in New Issue
Block a user