mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 10:00:45 -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
857aee2b91
commit
e8e5188484
@ -169,6 +169,10 @@ _cogl_path_stroke_nodes (void)
|
||||
|
||||
_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)
|
||||
{
|
||||
CoglPathNode *node = &g_array_index (data->path_nodes, CoglPathNode,
|
||||
|
Loading…
Reference in New Issue
Block a user