mirror of
https://github.com/microsoft/DirectXTex.git
synced 2026-02-06 05:06: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
|
||||
{
|
||||
if ( !_image )
|
||||
return false;
|
||||
|
||||
if ( !HasAlpha( _metadata.format ) )
|
||||
return true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user