add a pragma so msvc will use precise math when compiling xatlas.cpp, to get consistent results across builds

#jira UE-164543
#rb semion.piskarev
#preflight 632e0abae23e50651ba35f72

[CL 22165439 by jimmy andrews in ue5-main branch]
This commit is contained in:
jimmy andrews
2022-09-23 20:47:22 -04:00
parent eaad7ae995
commit 7d14aaf2ee

View File

@@ -39,6 +39,7 @@ Copyright (c) 2012 Brandon Pelfrey
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable : 4242)
#pragma float_control(precise, on, push)
#endif
#if defined(__clang__)
@@ -10077,4 +10078,5 @@ void xatlasPackOptionsInit(xatlasPackOptions *packOptions)
#if defined(_MSC_VER)
#pragma warning(pop)
#endif
#pragma float_control(pop)
#endif