1
0
mirror of https://github.com/microsoft/DirectXTex synced 2024-12-27 11:50:13 +00:00

Fixed problems with WIC1 codepaths

This commit is contained in:
Chuck Walbourn 2015-08-19 18:00:26 -07:00
parent 40496ecffa
commit e3d21fc8c6
3 changed files with 5 additions and 1 deletions

View File

@ -219,6 +219,8 @@ HRESULT _ResizeSeparateColorAndAlpha( _In_ IWICImagingFactory* pWIC, _In_ bool i
colorPixelFormat = GUID_WICPixelFormat96bppRGBFloat;
}
else
#else
UNREFERENCED_PARAMETER(iswic2);
#endif
{
colorBytesInPixel = 12;

View File

@ -275,7 +275,7 @@ IWICImagingFactory* GetWICFactory(bool& iswic2)
nullptr,
CLSCTX_INPROC_SERVER,
__uuidof(IWICImagingFactory),
(LPVOID*)&s_Factory
(LPVOID*)&g_Factory
);
g_WIC2 = false;

View File

@ -161,6 +161,8 @@ static DXGI_FORMAT _DetermineFormat( _In_ const WICPixelFormatGUID& pixelFormat,
format = DXGI_FORMAT_R32G32B32_FLOAT;
}
else
#else
UNREFERENCED_PARAMETER(iswic2);
#endif
{
if ( pConvert )