mirror of
https://github.com/microsoft/DirectXTex.git
synced 2025-07-13 21:50:13 +02:00
Minor code review
This commit is contained in:
parent
dbaaffbefb
commit
9adc918c98
@ -1057,7 +1057,7 @@ HRESULT DirectX::LoadFromWICMemory(
|
|||||||
return hr;
|
return hr;
|
||||||
|
|
||||||
// Get metadata
|
// Get metadata
|
||||||
TexMetadata mdata;
|
TexMetadata mdata = {};
|
||||||
WICPixelFormatGUID convertGUID = {};
|
WICPixelFormatGUID convertGUID = {};
|
||||||
hr = DecodeMetadata(flags, iswic2, decoder.Get(), frame.Get(), mdata, &convertGUID, getMQR);
|
hr = DecodeMetadata(flags, iswic2, decoder.Get(), frame.Get(), mdata, &convertGUID, getMQR);
|
||||||
if (FAILED(hr))
|
if (FAILED(hr))
|
||||||
@ -1118,7 +1118,7 @@ HRESULT DirectX::LoadFromWICFile(
|
|||||||
return hr;
|
return hr;
|
||||||
|
|
||||||
// Get metadata
|
// Get metadata
|
||||||
TexMetadata mdata;
|
TexMetadata mdata = {};
|
||||||
WICPixelFormatGUID convertGUID = {};
|
WICPixelFormatGUID convertGUID = {};
|
||||||
hr = DecodeMetadata(flags, iswic2, decoder.Get(), frame.Get(), mdata, &convertGUID, getMQR);
|
hr = DecodeMetadata(flags, iswic2, decoder.Get(), frame.Get(), mdata, &convertGUID, getMQR);
|
||||||
if (FAILED(hr))
|
if (FAILED(hr))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user