mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 00:20:42 -05:00
cogl-path: Disable texture coord arrays before drawing
It was possible that the texture co-ord arrays were left enabled during stroking, which could possibly cause a crash.
This commit is contained in:
parent
8512423f22
commit
97e39228c5
@ -169,6 +169,10 @@ _cogl_path_stroke_nodes (void)
|
|||||||
|
|
||||||
_cogl_material_flush_gl_state (source, FALSE);
|
_cogl_material_flush_gl_state (source, FALSE);
|
||||||
|
|
||||||
|
/* Disable all client texture coordinate arrays */
|
||||||
|
_cogl_bitmask_clear_all (&ctx->temp_bitmask);
|
||||||
|
_cogl_disable_other_texcoord_arrays (&ctx->temp_bitmask);
|
||||||
|
|
||||||
while (path_start < data->path_nodes->len)
|
while (path_start < data->path_nodes->len)
|
||||||
{
|
{
|
||||||
CoglPathNode *node = &g_array_index (data->path_nodes, CoglPathNode,
|
CoglPathNode *node = &g_array_index (data->path_nodes, CoglPathNode,
|
||||||
|
Loading…
Reference in New Issue
Block a user