- fixed loading of 32-bit TGA textures with alpha channel

https://forum.zdoom.org/viewtopic.php?t=64741#p1104564
This commit is contained in:
alexey.lysiuk 2019-05-25 10:47:54 +03:00
parent da2d0e47e6
commit 733dea55da

View file

@ -497,7 +497,7 @@ int FTGATexture::CopyPixels(FBitmap *bmp, int conversion)
}
else
{
bmp->CopyPixelDataRGB(0, 0, ptr, Width, Height, step_x, Pitch, 9, CF_BGRA);
bmp->CopyPixelDataRGB(0, 0, ptr, Width, Height, step_x, Pitch, 0, CF_BGRA);
transval = -1;
}
break;