From 4c21b2ea8d42a92e2f1cbfd93346ff77041ea44d Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sun, 1 Mar 2015 20:51:37 +0100 Subject: Fix colormap segfault The segfaults due to unaligned vector access should have happened before the recent changes. Not sure why it worked before. Reverts colormap vectorization. This is going to be restored once I rework the colormaps. --- palettes.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'palettes.c') diff --git a/palettes.c b/palettes.c index cf76003..32bef52 100644 --- a/palettes.c +++ b/palettes.c @@ -184,8 +184,9 @@ int flam3_get_palette(int n, flam3_palette c, double hue_rotation, randctx * con c[i].index = i; - c[i].color = rgb; - + c[i].color[0] = rgb[0]; + c[i].color[1] = rgb[1]; + c[i].color[2] = rgb[2]; c[i].color[3] = 1.0; } -- cgit v1.2.3