summaryrefslogtreecommitdiffstats
path: root/libdimension/sky_sphere.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/sky_sphere.c')
-rw-r--r--libdimension/sky_sphere.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdimension/sky_sphere.c b/libdimension/sky_sphere.c
index ec3fe2e..9643feb 100644
--- a/libdimension/sky_sphere.c
+++ b/libdimension/sky_sphere.c
@@ -64,7 +64,7 @@ dmnsn_sky_sphere_color(const dmnsn_sky_sphere *sky_sphere, dmnsn_vector d)
DMNSN_ARRAY_FOREACH (const dmnsn_pigment **, pigment, sky_sphere->pigments) {
dmnsn_pigment_fn *pigment_fn = (*pigment)->pigment_fn;
if (pigment_fn) {
- dmnsn_color sky = (*pigment_fn)(*pigment, d);
+ dmnsn_color sky = pigment_fn(*pigment, d);
color = dmnsn_color_add(dmnsn_color_filter(color, sky), sky);
}
}