- fixed: Alpha textures need to use a color's grayscale value, not their red channel.

This commit is contained in:
Christoph Oelckers 2018-12-17 17:44:22 +01:00
parent fb71563311
commit d68cd3aa80

View file

@ -140,7 +140,7 @@ const uint8_t *FSoftwareTexture::GetPixels(int style)
{
for (int x = 0; x < GetPhysicalWidth(); x++)
{
Pixels[y + x * GetPhysicalHeight()] = pe[x + y * GetPhysicalWidth()].r;
Pixels[y + x * GetPhysicalHeight()] = pe[x + y * GetPhysicalWidth()].Luminance();
}
}
}