commit 6acf488d4716fa97b284ca8fab30e77cf8d6ee10
parent aa6ff0ef16ed01789b6961605387039faca92c75
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Mon, 5 Oct 2015 18:56:35 +0200
Remove a useless commit of the Embree scene
The Embree scene was committed on the Star-3D scene creation in order to
allow its ray-tracing on empty scene. Since the introduction of the
begin/end trace API this commit is now useless.
Diffstat:
1 file changed, 0 insertions(+), 3 deletions(-)
diff --git a/src/s3d_scene.c b/src/s3d_scene.c
@@ -631,9 +631,6 @@ s3d_scene_create(struct s3d_device* dev, struct s3d_scene** out_scn)
res = RES_MEM_ERR;
goto error;
}
- /* Commit empty scene => the scene can be ray traced without any build */
- rtcCommit(scn->rtc_scn);
-
f3_splat(scn->lower, FLT_MAX);
f3_splat(scn->upper,-FLT_MAX);