vcpkg/ports/directxtex/enable_openexr_support.patch
Chuck Walbourn 2d7a8443ac
[directxtex,directxmesh, directxtk, directxtk12, uvatlas] updated for April 2021 releases (#17123)
* directxmesh, directxtex, directxtk, directxtk12, uvatlas updated for April 2021 release

* Updated versions
2021-04-09 09:54:41 -07:00

23 lines
766 B
Diff

diff --git a/DirectXTexEXR.cpp b/DirectXTexEXR.cpp
index 9ac601f..204bde2 100644
--- a/DirectXTex/DirectXTexEXR.cpp
+++ b/DirectXTex/DirectXTexEXR.cpp
@@ -8,7 +8,7 @@
//--------------------------------------------------------------------------------------
//Uncomment if you add DirectXTexEXR to your copy of the DirectXTex library
-//#include "DirectXTexP.h"
+#include "DirectXTexP.h"
#include "DirectXTexEXR.h"
@@ -56,7 +56,7 @@ using namespace DirectX;
using PackedVector::XMHALF4;
// Comment out this first anonymous namespace if you add the include of DirectXTexP.h above
-#ifdef WIN32
+#if 0
namespace
{
struct handle_closer { void operator()(HANDLE h) { assert(h != INVALID_HANDLE_VALUE); if (h) CloseHandle(h); } };