1
0
mirror of https://github.com/microsoft/DirectXTex synced 2024-12-28 04:01:03 +00:00

Minor code review

This commit is contained in:
Chuck Walbourn 2020-03-11 17:05:50 -07:00
parent dbaaffbefb
commit 9adc918c98

View File

@ -1057,7 +1057,7 @@ HRESULT DirectX::LoadFromWICMemory(
return hr;
// Get metadata
TexMetadata mdata;
TexMetadata mdata = {};
WICPixelFormatGUID convertGUID = {};
hr = DecodeMetadata(flags, iswic2, decoder.Get(), frame.Get(), mdata, &convertGUID, getMQR);
if (FAILED(hr))
@ -1118,7 +1118,7 @@ HRESULT DirectX::LoadFromWICFile(
return hr;
// Get metadata
TexMetadata mdata;
TexMetadata mdata = {};
WICPixelFormatGUID convertGUID = {};
hr = DecodeMetadata(flags, iswic2, decoder.Get(), frame.Get(), mdata, &convertGUID, getMQR);
if (FAILED(hr))