1
0
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:
walbourn_cp 2013-09-09 15:10:35 -07:00
parent 7523b2bb9b
commit 1bc39d8854

View File

@ -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;