From 120f94d073cb2b005592c26f75e117b28f390a94 Mon Sep 17 00:00:00 2001 From: Robert Bragg Date: Fri, 27 Nov 2009 15:24:09 +0000 Subject: [PATCH] primitives: Don't use dynamic arrays since VS2008 can't cope with them :-( This changes _cogl_path_fill_nodes_scanlines to use g_alloca instead of using a variable to declare an array length. --- cogl/cogl-primitives.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogl/cogl-primitives.c b/cogl/cogl-primitives.c index b68c7e4d8..63bd382c6 100644 --- a/cogl/cogl-primitives.c +++ b/cogl/cogl-primitives.c @@ -1294,7 +1294,7 @@ _cogl_path_fill_nodes_scanlines (CoglPathNode *path, * data structure that has smaller overhead for inserting the * curve/scanline intersections. */ - GSList *scanlines[bounds_h]; + GSList **scanlines = g_alloca (bounds_h * sizeof (GSList *)); int i; int prev_x;