solstice-solver

Solver library of the solstice app
git clone git://git.meso-star.com/solstice-solver.git
Log | Files | Refs | README | LICENSE

commit f6e1221deb3b244947f62a29a994ea0e1057ac6e
parent e4d25a403770258112dc5b782dd1ec224c4b15d3
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Fri,  2 Sep 2016 10:00:04 +0200

Fix GCC warnings in release

Diffstat:
Msrc/ssol_solver.c | 8+-------
1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/src/ssol_solver.c b/src/ssol_solver.c @@ -515,7 +515,6 @@ static void propagate(struct realisation* rs) { struct segment* seg = current_segment(rs); - struct ssol_scene* scene = rs->data.scene; /* check if the ray hits something */ S3D(scene_view_trace_ray @@ -525,7 +524,7 @@ propagate(struct realisation* rs) return; } /* should not stop on a virtual surface */ - ASSERT(material_get_type(get_material_from_hit(scene, &seg->hit)) + ASSERT(material_get_type(get_material_from_hit(rs->data.scene, &seg->hit)) != MATERIAL_VIRTUAL); /* offset the impact point and recompute normal if needed */ @@ -563,14 +562,9 @@ ssol_solve size_t r; res_T res = RES_OK; - struct ssol_device* device = NULL; - if (!scene || !rng || !output || !realisations_count) return RES_BAD_ARG; - device = scene_get_device(scene); - ASSERT(device && device->allocator); - /* init realisation */ res = init_realisation(scene, rng, output, &rs); if (res != RES_OK) goto error;