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
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue