summaryrefslogtreecommitdiffstats
path: root/libdimension/sky_sphere.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-04-03 21:30:15 -0400
committerTavian Barnes <tavianator@gmail.com>2011-04-03 21:30:15 -0400
commit5a535f9fac3f4b82f0b154b4c81fd1e2a8d62802 (patch)
tree2b642b87d97ab13b050e1ef9323725c0bbd5b5c6 /libdimension/sky_sphere.c
parent7bc2770af08e317b2076540050c68d2de55a11db (diff)
downloaddimension-5a535f9fac3f4b82f0b154b4c81fd1e2a8d62802.tar.xz
Don't use awkward (*fptr)() syntax.
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);
}
}