]> gitweb.factorcode.org Git - factor.git/commitdiff
raylib.ffi: Fix wrong pointer argument
authortimor <timor.dd@googlemail.com>
Sun, 23 May 2021 20:55:15 +0000 (22:55 +0200)
committerJohn Benediktsson <mrjbq7@gmail.com>
Sun, 23 May 2021 22:54:17 +0000 (15:54 -0700)
This was causing memory access faults.

extra/raylib/ffi/ffi.factor

index f02c7fbd5e97ef183b8ccc6770a48b45367ca86c..bbd73873f07c6b6bd6fd33ef85ebc3e18acc72d3 100644 (file)
@@ -1023,7 +1023,7 @@ FUNCTION-ALIAS:  check-collision-box-sphere bool CheckCollisionBoxSphere ( Bound
 FUNCTION-ALIAS:  check-collision-ray-sphere bool CheckCollisionRaySphere ( Ray ray, Vector3 spherePosition, float sphereRadius )                               ! Detect collision between ray and sphere
 FUNCTION-ALIAS:  check-collision-ray-sphere-ex bool CheckCollisionRaySphereEx ( Ray ray, Vector3 spherePosition, float sphereRadius, Vector3* collisionPoint ) ! Detect collision between ray and sphere, returns collision point
 FUNCTION-ALIAS:  check-collision-ray-box bool CheckCollisionRayBox ( Ray ray, BoundingBox box )                                                                ! Detect collision between ray and box
-FUNCTION-ALIAS:  get-collision-ray-model RayHitInfo GetCollisionRayModel ( Ray ray, Model* model )                                                             ! Get collision info between ray and model
+FUNCTION-ALIAS:  get-collision-ray-model RayHitInfo GetCollisionRayModel ( Ray ray, Model model )                                                             ! Get collision info between ray and model
 FUNCTION-ALIAS:  get-collision-ray-triangle RayHitInfo GetCollisionRayTriangle ( Ray ray, Vector3 p1, Vector3 p2, Vector3 p3 )                                 ! Get collision info between ray and triangle
 FUNCTION-ALIAS:  get-collision-ray-ground RayHitInfo GetCollisionRayGround ( Ray ray, float groundHeight )                                                     ! Get collision info between ray and ground plane  ( Y-normal plane )