mirror of
https://github.com/microsoft/DirectXTex.git
synced 2026-02-04 04:16:12 +01:00
Minor code review for loaders
This commit is contained in:
@@ -952,7 +952,7 @@ HRESULT DirectX::SaveWICTextureToFile(
|
||||
return hr;
|
||||
|
||||
// Determine source format's WIC equivalent
|
||||
WICPixelFormatGUID pfGuid;
|
||||
WICPixelFormatGUID pfGuid = {};
|
||||
bool sRGB = forceSRGB;
|
||||
switch ( desc.Format )
|
||||
{
|
||||
@@ -1060,7 +1060,7 @@ HRESULT DirectX::SaveWICTextureToFile(
|
||||
return hr;
|
||||
|
||||
// Pick a target format
|
||||
WICPixelFormatGUID targetGuid;
|
||||
WICPixelFormatGUID targetGuid = {};
|
||||
if ( targetFormat )
|
||||
{
|
||||
targetGuid = *targetFormat;
|
||||
|
||||
@@ -1094,7 +1094,7 @@ HRESULT DirectX::SaveWICTextureToFile(
|
||||
return hr;
|
||||
|
||||
// Determine source format's WIC equivalent
|
||||
WICPixelFormatGUID pfGuid;
|
||||
WICPixelFormatGUID pfGuid = {};
|
||||
bool sRGB = forceSRGB;
|
||||
switch ( desc.Format )
|
||||
{
|
||||
@@ -1202,7 +1202,7 @@ HRESULT DirectX::SaveWICTextureToFile(
|
||||
return hr;
|
||||
|
||||
// Pick a target format
|
||||
WICPixelFormatGUID targetGuid;
|
||||
WICPixelFormatGUID targetGuid = {};
|
||||
if ( targetFormat )
|
||||
{
|
||||
targetGuid = *targetFormat;
|
||||
|
||||
Reference in New Issue
Block a user