mirror of
https://github.com/microsoft/DirectXTex.git
synced 2025-07-09 19:50:13 +02:00
Fix -Wunused-variable warnings
This commit is contained in:
parent
9a9fb5e39e
commit
ad9c7cbb3a
@ -180,7 +180,9 @@ namespace
|
|||||||
// We don't support n-channel formats
|
// We don't support n-channel formats
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if (_WIN32_WINNT >= _WIN32_WINNT_WIN8) || defined(_WIN7_PLATFORM_UPDATE)
|
||||||
bool g_WIC2 = false;
|
bool g_WIC2 = false;
|
||||||
|
#endif
|
||||||
|
|
||||||
BOOL WINAPI InitializeWICFactory(PINIT_ONCE, PVOID, PVOID *ifactory) noexcept
|
BOOL WINAPI InitializeWICFactory(PINIT_ONCE, PVOID, PVOID *ifactory) noexcept
|
||||||
{
|
{
|
||||||
|
@ -158,8 +158,6 @@ namespace
|
|||||||
// We don't support n-channel formats
|
// We don't support n-channel formats
|
||||||
};
|
};
|
||||||
|
|
||||||
bool g_WIC2 = false;
|
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------
|
||||||
BOOL WINAPI InitializeWICFactory(PINIT_ONCE, PVOID, PVOID* ifactory) noexcept
|
BOOL WINAPI InitializeWICFactory(PINIT_ONCE, PVOID, PVOID* ifactory) noexcept
|
||||||
{
|
{
|
||||||
@ -175,7 +173,6 @@ namespace
|
|||||||
if (SUCCEEDED(hr))
|
if (SUCCEEDED(hr))
|
||||||
{
|
{
|
||||||
// WIC2 is available on Windows 10, Windows 8.x, and Windows 7 SP1 with KB 2670838 installed
|
// WIC2 is available on Windows 10, Windows 8.x, and Windows 7 SP1 with KB 2670838 installed
|
||||||
g_WIC2 = true;
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user