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.
This commit is contained in:
parent
47db7af4d3
commit
934eb5d251
@ -1294,7 +1294,7 @@ _cogl_path_fill_nodes_scanlines (CoglPathNode *path,
|
|||||||
* data structure that has smaller overhead for inserting the
|
* data structure that has smaller overhead for inserting the
|
||||||
* curve/scanline intersections.
|
* curve/scanline intersections.
|
||||||
*/
|
*/
|
||||||
GSList *scanlines[bounds_h];
|
GSList **scanlines = g_alloca (bounds_h * sizeof (GSList *));
|
||||||
|
|
||||||
int i;
|
int i;
|
||||||
int prev_x;
|
int prev_x;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user