DirectXTex: minor /analyze fix
This commit is contained in:
parent
7523b2bb9b
commit
1bc39d8854
@ -690,6 +690,9 @@ const Image* ScratchImage::GetImage(size_t mip, size_t item, size_t slice) const
|
|||||||
|
|
||||||
bool ScratchImage::IsAlphaAllOpaque() const
|
bool ScratchImage::IsAlphaAllOpaque() const
|
||||||
{
|
{
|
||||||
|
if ( !_image )
|
||||||
|
return false;
|
||||||
|
|
||||||
if ( !HasAlpha( _metadata.format ) )
|
if ( !HasAlpha( _metadata.format ) )
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user