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