star-2d

Contour structuring for efficient 2D geometric queries
git clone git://git.meso-star.fr/star-2d.git
Log | Files | Refs | README | LICENSE

commit 12a8bfcaa931f84cc74c570b080502f5e0233be3
parent 9488530875431afbe2f9f8d260896741b3ba2538
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Fri, 18 Jan 2019 10:09:31 +0100

Fix the setup of the shape positions against Embree3

Diffstat:
Msrc/s2d_scene_view.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/s2d_scene_view.c b/src/s2d_scene_view.c @@ -235,7 +235,7 @@ embree_geometry_setup_positions } rtcSetGeometryBuffer(geom->rtc, RTC_BUFFER_TYPE_VERTEX, 0/*slot*/, - RTC_FORMAT_FLOAT3, buf, 0/*offset*/, sizeof(float[3])/*stride*/, nverts); + RTC_FORMAT_FLOAT3, buf, 0/*offset*/, sizeof(float[3])/*stride*/, nverts*2); rtcUpdateGeometryBuffer(geom->rtc, RTC_BUFFER_TYPE_VERTEX, 0/*slot*/); exit: