Skip to content

Commit

Permalink
Fix for merge problem.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbikker committed Dec 7, 2024
1 parent dd3e0f1 commit 447f46c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tiny_bvh.h
Original file line number Diff line number Diff line change
Expand Up @@ -267,11 +267,6 @@ struct bvhuint2
uint32_t x, y;
};

#ifdef TINYBVH_IMPLEMENTATION
bvhvec4::bvhvec4( const bvhvec3& a ) { x = a.x; y = a.y; z = a.z; w = 0; }
bvhvec4::bvhvec4( const bvhvec3& a, float b ) { x = a.x; y = a.y; z = a.z; w = b; }
#endif

#endif // TINYBVH_USE_CUSTOM_VECTOR_TYPES

struct bvhaabb
Expand Down Expand Up @@ -904,9 +899,13 @@ static uint32_t __bfind( uint32_t x ) // https://github.com/mackron/refcode/blob
#endif
}

#ifndef TINYBVH_USE_CUSTOM_VECTOR_TYPES

bvhvec4::bvhvec4( const bvhvec3& a ) { x = a.x; y = a.y; z = a.z; w = 0; }
bvhvec4::bvhvec4( const bvhvec3& a, float b ) { x = a.x; y = a.y; z = a.z; w = b; }

#endif

bvhvec4slice::bvhvec4slice( const bvhvec4* data, uint32_t count, uint32_t stride ) :
data{ reinterpret_cast<const int8_t*>(data) },
count{ count }, stride{ stride } {}
Expand Down

0 comments on commit 447f46c

Please sign in to comment.