Skip to content

Commit

Permalink
directxtex: Build with _XM_NO_INTRINSICS_ on MSVC builds too.
Browse files Browse the repository at this point in the history
As there seeems to be bugs in the intrisics code paths.
  • Loading branch information
jrfonseca committed Mar 16, 2018
1 parent 93c5c99 commit 5a57da2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions thirdparty/directxtex/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ if (DirectX_D3D11_4_INCLUDE_FOUND)
add_definitions (-D_XM_X86_)
endif ()
set (MINGW_GUID mingw/guid.cpp)
else ()
# MSVC uses intrinsics by default, but it seems to expose bugs for some
# formats.
add_definitions (-D_XM_NO_INTRINSICS_)
endif ()

add_library (directxtex STATIC
Expand Down

0 comments on commit 5a57da2

Please sign in to comment.