Fixed warnings. (#401)

This commit is contained in:
Branimir Karadžić
2026-06-13 16:56:53 -07:00
committed by GitHub
parent 771ce6a8e8
commit 64dcc737a0
2 changed files with 8 additions and 1 deletions

View File

@@ -2045,7 +2045,12 @@ namespace bx
return true;
}
const Vec3 pos = closestPoint(plane, hit.pos);
const Vec3 nearest = abs(distance(plane, line.pos) ) <= abs(distance(plane, line.end) )
? line.pos
: line.end
;
const Vec3 pos = closestPoint(plane, nearest);
const Vec3 uvw = barycentric(_triangle, pos);
const float nr = -_ty.radius;

View File

@@ -372,6 +372,8 @@ namespace bx
#else
_Exit(_exitCode);
#endif // BX_PLATFORM_*
BX_UNREACHABLE;
}
namespace