mirror of
https://github.com/microsoft/DirectXTex
synced 2024-12-26 19:31:02 +00:00
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
|
||||
{
|
||||
if ( !_image )
|
||||
return false;
|
||||
|
||||
if ( !HasAlpha( _metadata.format ) )
|
||||
return true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user