Use mingw-std-threads in MinGW builds

This commit is contained in:
Pedro J. Estébanez 2023-11-17 20:44:38 +01:00
parent ad72de5083
commit fe4850c0d0
29 changed files with 2342 additions and 28 deletions

View file

@ -117,6 +117,11 @@ AABB AABB::intersection(const AABB &p_aabb) const {
return AABB(min, max - min);
}
#ifdef MINGW_ENABLED
#undef near
#undef far
#endif
bool AABB::intersects_ray(const Vector3 &p_from, const Vector3 &p_dir, Vector3 *r_clip, Vector3 *r_normal) const {
#ifdef MATH_CHECKS
if (unlikely(size.x < 0 || size.y < 0 || size.z < 0)) {