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:
Chris Lord 2010-06-23 15:53:50 +01:00
parent 8512423f22
commit 97e39228c5

View File

@ -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,