mirror of
https://github.com/microsoft/DirectXTex.git
synced 2025-07-14 06:00:14 +02:00
Minor code review
This commit is contained in:
parent
8b2a53e500
commit
e15f564ba7
@ -4531,7 +4531,7 @@ namespace
|
||||
assert(srcImage.height == destImage.height);
|
||||
|
||||
bool iswic2 = false;
|
||||
IWICImagingFactory* pWIC = GetWICFactory(iswic2);
|
||||
auto pWIC = GetWICFactory(iswic2);
|
||||
if (!pWIC)
|
||||
return E_NOINTERFACE;
|
||||
|
||||
|
@ -31,7 +31,7 @@ namespace
|
||||
assert(srcImage.format == destImage.format);
|
||||
|
||||
bool iswic2 = false;
|
||||
IWICImagingFactory* pWIC = GetWICFactory(iswic2);
|
||||
auto pWIC = GetWICFactory(iswic2);
|
||||
if (!pWIC)
|
||||
return E_NOINTERFACE;
|
||||
|
||||
|
@ -700,7 +700,7 @@ namespace
|
||||
return E_POINTER;
|
||||
|
||||
bool iswic2 = false;
|
||||
IWICImagingFactory* pWIC = GetWICFactory(iswic2);
|
||||
auto pWIC = GetWICFactory(iswic2);
|
||||
if (!pWIC)
|
||||
return E_NOINTERFACE;
|
||||
|
||||
|
@ -37,7 +37,7 @@ namespace
|
||||
assert(srcImage.format == destImage.format);
|
||||
|
||||
bool iswic2 = false;
|
||||
IWICImagingFactory* pWIC = GetWICFactory(iswic2);
|
||||
auto pWIC = GetWICFactory(iswic2);
|
||||
if (!pWIC)
|
||||
return E_NOINTERFACE;
|
||||
|
||||
|
@ -395,7 +395,7 @@ namespace
|
||||
return E_POINTER;
|
||||
|
||||
bool iswic2 = false;
|
||||
IWICImagingFactory* pWIC = GetWICFactory(iswic2);
|
||||
auto pWIC = GetWICFactory(iswic2);
|
||||
if (!pWIC)
|
||||
return E_NOINTERFACE;
|
||||
|
||||
@ -457,7 +457,7 @@ namespace
|
||||
return hr;
|
||||
|
||||
bool iswic2 = false;
|
||||
IWICImagingFactory* pWIC = GetWICFactory(iswic2);
|
||||
auto pWIC = GetWICFactory(iswic2);
|
||||
if (!pWIC)
|
||||
return E_NOINTERFACE;
|
||||
|
||||
@ -733,7 +733,7 @@ namespace
|
||||
{
|
||||
// Conversion required to write
|
||||
bool iswic2 = false;
|
||||
IWICImagingFactory* pWIC = GetWICFactory(iswic2);
|
||||
auto pWIC = GetWICFactory(iswic2);
|
||||
if (!pWIC)
|
||||
return E_NOINTERFACE;
|
||||
|
||||
@ -794,7 +794,7 @@ namespace
|
||||
|
||||
// Initialize WIC
|
||||
bool iswic2 = false;
|
||||
IWICImagingFactory* pWIC = GetWICFactory(iswic2);
|
||||
auto pWIC = GetWICFactory(iswic2);
|
||||
if (!pWIC)
|
||||
return E_NOINTERFACE;
|
||||
|
||||
@ -862,7 +862,7 @@ namespace
|
||||
|
||||
// Initialize WIC
|
||||
bool iswic2 = false;
|
||||
IWICImagingFactory* pWIC = GetWICFactory(iswic2);
|
||||
auto pWIC = GetWICFactory(iswic2);
|
||||
if (!pWIC)
|
||||
return E_NOINTERFACE;
|
||||
|
||||
@ -937,7 +937,7 @@ HRESULT DirectX::GetMetadataFromWICMemory(
|
||||
return HRESULT_FROM_WIN32(ERROR_FILE_TOO_LARGE);
|
||||
|
||||
bool iswic2 = false;
|
||||
IWICImagingFactory* pWIC = GetWICFactory(iswic2);
|
||||
auto pWIC = GetWICFactory(iswic2);
|
||||
if (!pWIC)
|
||||
return E_NOINTERFACE;
|
||||
|
||||
@ -986,7 +986,7 @@ HRESULT DirectX::GetMetadataFromWICFile(
|
||||
return E_INVALIDARG;
|
||||
|
||||
bool iswic2 = false;
|
||||
IWICImagingFactory* pWIC = GetWICFactory(iswic2);
|
||||
auto pWIC = GetWICFactory(iswic2);
|
||||
if (!pWIC)
|
||||
return E_NOINTERFACE;
|
||||
|
||||
@ -1029,7 +1029,7 @@ HRESULT DirectX::LoadFromWICMemory(
|
||||
return HRESULT_FROM_WIN32(ERROR_FILE_TOO_LARGE);
|
||||
|
||||
bool iswic2 = false;
|
||||
IWICImagingFactory* pWIC = GetWICFactory(iswic2);
|
||||
auto pWIC = GetWICFactory(iswic2);
|
||||
if (!pWIC)
|
||||
return E_NOINTERFACE;
|
||||
|
||||
@ -1100,7 +1100,7 @@ HRESULT DirectX::LoadFromWICFile(
|
||||
return E_INVALIDARG;
|
||||
|
||||
bool iswic2 = false;
|
||||
IWICImagingFactory* pWIC = GetWICFactory(iswic2);
|
||||
auto pWIC = GetWICFactory(iswic2);
|
||||
if (!pWIC)
|
||||
return E_NOINTERFACE;
|
||||
|
||||
@ -1278,7 +1278,7 @@ HRESULT DirectX::SaveToWICFile(
|
||||
return E_POINTER;
|
||||
|
||||
bool iswic2 = false;
|
||||
IWICImagingFactory* pWIC = GetWICFactory(iswic2);
|
||||
auto pWIC = GetWICFactory(iswic2);
|
||||
if (!pWIC)
|
||||
return E_NOINTERFACE;
|
||||
|
||||
@ -1316,7 +1316,7 @@ HRESULT DirectX::SaveToWICFile(
|
||||
return E_INVALIDARG;
|
||||
|
||||
bool iswic2 = false;
|
||||
IWICImagingFactory* pWIC = GetWICFactory(iswic2);
|
||||
auto pWIC = GetWICFactory(iswic2);
|
||||
if (!pWIC)
|
||||
return E_NOINTERFACE;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user