diff --git a/examples/raycast/raycast.cpp b/examples/raycast/raycast.cpp index 09bf2e091d..12f74e7df0 100644 --- a/examples/raycast/raycast.cpp +++ b/examples/raycast/raycast.cpp @@ -368,7 +368,7 @@ namespace std::vector pixels; }; - constexpr auto noHit = std::numeric_limits::infinity(); + constexpr auto noHit = std::numeric_limits::max(); // must be within finite math for -ffast-math struct Intersection {