mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-22 23:26:15 +00:00
Fixed: Alpha channel with 0 is correct, don't change it
This commit is contained in:
parent
001b9facbe
commit
66dc091c20
1 changed files with 2 additions and 2 deletions
|
@ -670,8 +670,8 @@ static void BuildColoredVersionForOneBitmap(const CBuildInfo &bi, const std::str
|
|||
{
|
||||
uint8 value = 0;
|
||||
|
||||
// texture can be converted if all alphas are 0 or 255
|
||||
if (srcBitmap.isAlphaUniform(&value) && (value == 255 || value == 0))
|
||||
// texture can be converted if all alphas are 255
|
||||
if (srcBitmap.isAlphaUniform(&value) && value == 255)
|
||||
{
|
||||
if (bi.OptimizeTextures > 1)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue