Add check for SSE2 in light.cc (#328)
This commit is contained in:
parent
f5cda68416
commit
ccac9d4979
|
|
@ -38,7 +38,7 @@
|
|||
#include <common/imglib.hh>
|
||||
#include <common/parallel.hh>
|
||||
|
||||
#ifdef HAVE_EMBREE
|
||||
#if defined(HAVE_EMBREE) && defined (__SSE2__)
|
||||
#include <xmmintrin.h>
|
||||
//#include <pmmintrin.h>
|
||||
#endif
|
||||
|
|
@ -292,7 +292,7 @@ const img::texture *Face_Texture(const mbsp_t *bsp, const mface_t *face)
|
|||
|
||||
static void LightThread(const mbsp_t *bsp, size_t facenum)
|
||||
{
|
||||
#ifdef HAVE_EMBREE
|
||||
#if defined(HAVE_EMBREE) && defined (__SSE2__)
|
||||
_MM_SET_FLUSH_ZERO_MODE(_MM_FLUSH_ZERO_ON);
|
||||
// _MM_SET_DENORMALS_ZERO_MODE(_MM_DENORMALS_ZERO_ON);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue