Fix threshold for IsAlphaAllOpaque(#103)

This commit is contained in:
Chuck Walbourn 2018-05-31 12:55:26 -07:00
parent 94b06c9072
commit 11561a2807

View File

@ -764,7 +764,7 @@ bool ScratchImage::IsAlphaAllOpaque() const
if (!scanline)
return false;
static const XMVECTORF32 threshold = { { { 0.99f, 0.99f, 0.99f, 0.99f } } };
static const XMVECTORF32 threshold = { { { 0.997f, 0.997f, 0.997f, 0.997f } } };
for (size_t index = 0; index < m_nimages; ++index)
{