Browse Source

Moved ENABLED_LUA_JIT check for InitFPU() to the outer #if directive.

Lasse Öörni 12 years ago
parent
commit
869eeac20c
1 changed files with 1 additions and 3 deletions
  1. 1 3
      Source/Engine/Core/ProcessUtils.cpp

+ 1 - 3
Source/Engine/Core/ProcessUtils.cpp

@@ -104,13 +104,11 @@ void GetCPUData(struct cpu_id_t* data)
 
 
 void InitFPU()
 void InitFPU()
 {
 {
-    #if !defined(ANDROID) && !defined(IOS) && !defined(RASPI) && !defined(__x86_64__) && !defined(_M_AMD64)
+    #if !defined(ENABLE_LUA_JIT) && !defined(ANDROID) && !defined(IOS) && !defined(RASPI) && !defined(__x86_64__) && !defined(_M_AMD64)
     // Make sure FPU is in round-to-nearest, single precision mode
     // Make sure FPU is in round-to-nearest, single precision mode
     // This ensures Direct3D and OpenGL behave similarly, and all threads behave similarly
     // This ensures Direct3D and OpenGL behave similarly, and all threads behave similarly
     #ifdef _MSC_VER
     #ifdef _MSC_VER
-    #ifndef ENABLE_LUA_JIT
     _controlfp(_RC_NEAR | _PC_24, _MCW_RC | _MCW_PC);
     _controlfp(_RC_NEAR | _PC_24, _MCW_RC | _MCW_PC);
-    #endif
     #else
     #else
     unsigned control = GetFPUState();
     unsigned control = GetFPUState();
     control &= ~(FPU_CW_PREC_MASK | FPU_CW_ROUND_MASK);
     control &= ~(FPU_CW_PREC_MASK | FPU_CW_ROUND_MASK);