MINGW-packages/mingw-w64-directxtex/001-missing-compression-enumeration.patch
Dirk Stolle d4f53c6b44 directxtex: update to 2.0.8 (July 2025)
We have to add a workaround for the missing WICHeifCompressionOption
enumeration and its values (like WICHeifCompressionNone), because
those are not available in our headers yet.
2025-09-25 22:06:32 +02:00

17 lines
909 B
Diff

diff --git a/Texconv/texconv.cpp b/Texconv/texconv.cpp
index 282fb69..9d12cb6 100644
--- a/Texconv/texconv.cpp
+++ b/Texconv/texconv.cpp
@@ -3856,11 +3856,7 @@ int __cdecl wmain(_In_ int argc, _In_z_count_(argc) wchar_t* argv[])
{
options.pstrName = const_cast<wchar_t*>(L"HeifCompressionMethod");
varValues.vt = VT_UI1;
- #if defined(NTDDI_WIN10_CU)
- varValues.bVal = WICHeifCompressionNone;
- #else
varValues.bVal = 0x1 /* WICHeifCompressionNone */;
- #endif
}
else if (wicQuality >= 0.f)
{