mirror of
https://github.com/microsoft/DirectXTex.git
synced 2026-02-12 15:46:14 +01:00
Minor code review
This commit is contained in:
@@ -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))
|
||||||
|
|||||||
Reference in New Issue
Block a user