From 0f4c44c9fb642fca7f41a0b6fc1b14bed989328b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20J=2E=20Est=C3=A9banez?= Date: Sat, 23 Jan 2021 05:53:10 +0100 Subject: [PATCH] Fix freeze-crash in lightmapper under MinGW-GCC --- thirdparty/embree/common/sys/intrinsics.h | 16 +------------- thirdparty/embree/common/sys/mutex.h | 22 ++----------------- thirdparty/embree/common/sys/platform.h | 2 +- .../common/tasking/taskschedulerinternal.cpp | 8 ------- 4 files changed, 4 insertions(+), 44 deletions(-) diff --git a/thirdparty/embree/common/sys/intrinsics.h b/thirdparty/embree/common/sys/intrinsics.h index 1e0fd25eabd..dc8e7145008 100644 --- a/thirdparty/embree/common/sys/intrinsics.h +++ b/thirdparty/embree/common/sys/intrinsics.h @@ -11,12 +11,6 @@ #include -// -- GODOT start -- -#if defined(__WIN32__) && defined(__MINGW32__) -#include -#endif -// -- GODOT end -- - #if defined(__BMI__) && defined(__GNUC__) && !defined(__INTEL_COMPILER) #if !defined(_tzcnt_u32) #define _tzcnt_u32 __tzcnt_u32 @@ -425,16 +419,8 @@ namespace embree __forceinline void pause_cpu(const size_t N = 8) { -// -- GODOT start -- for (size_t i=0; i