From 8fc5b36510c5964873d88069b61b558bc3ef23f6 Mon Sep 17 00:00:00 2001 From: Julian T Date: Mon, 23 Mar 2020 16:14:53 +0100 Subject: Removed dynamic allocation of color in main.c --- ray.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ray.h') diff --git a/ray.h b/ray.h index 4f7fe0c..03756e3 100644 --- a/ray.h +++ b/ray.h @@ -20,7 +20,7 @@ COORD_T ray_intersect_sphere(sphere_t *s, ray_t *ray, bool skip_dist); COORD_T ray_intersect_plane(plane_t *p, ray_t *ray, bool skip_dist); object_t *ray_cast(space_t *s, ray_t *r, COORD_T *dist_ret, bool chk, COORD_T chk_dist); -color_t *ray_trace(space_t *s, unsigned int x, unsigned int y, unsigned samples, void *seed); +void ray_trace(space_t *s, unsigned int x, unsigned int y, unsigned samples, color_t *c, void *seed); #endif -- cgit v1.2.3