summaryrefslogtreecommitdiff
path: root/palettes.c
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2015-03-01 20:51:37 +0100
committerLars-Dominik Braun <lars@6xq.net>2015-05-02 21:36:45 +0200
commit4c21b2ea8d42a92e2f1cbfd93346ff77041ea44d (patch)
tree32b955a06368886d4df77c0e2bfb53ef137580ef /palettes.c
parent4d2d896e28446928d820bf1353abcf40e3f66ed8 (diff)
downloadpucket-4c21b2ea8d42a92e2f1cbfd93346ff77041ea44d.tar.gz
pucket-4c21b2ea8d42a92e2f1cbfd93346ff77041ea44d.tar.bz2
pucket-4c21b2ea8d42a92e2f1cbfd93346ff77041ea44d.zip
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.
Diffstat (limited to 'palettes.c')
-rw-r--r--palettes.c5
1 files changed, 3 insertions, 2 deletions
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;
}