mirror of
https://github.com/microsoft/DirectXTex
synced 2024-12-28 04:01:03 +00:00
Minor code review
This commit is contained in:
parent
dbaaffbefb
commit
9adc918c98
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user