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; colorPixelFormat = GUID_WICPixelFormat96bppRGBFloat;
} }
else else
#else
UNREFERENCED_PARAMETER(iswic2);
#endif #endif
{ {
colorBytesInPixel = 12; colorBytesInPixel = 12;

View File

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

View File

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