mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 15:02:01 +00:00
- fixed: Alpha textures need to use a color's grayscale value, not their red channel.
This commit is contained in:
parent
fb71563311
commit
d68cd3aa80
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@ const uint8_t *FSoftwareTexture::GetPixels(int style)
|
||||||
{
|
{
|
||||||
for (int x = 0; x < GetPhysicalWidth(); x++)
|
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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue