From 733dea55dafd81b50e8d2c0128fbb96ab4614733 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sat, 25 May 2019 10:47:54 +0300 Subject: [PATCH] - fixed loading of 32-bit TGA textures with alpha channel https://forum.zdoom.org/viewtopic.php?t=64741#p1104564 --- src/gamedata/textures/formats/tgatexture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gamedata/textures/formats/tgatexture.cpp b/src/gamedata/textures/formats/tgatexture.cpp index 9936a828e..927bf9b50 100644 --- a/src/gamedata/textures/formats/tgatexture.cpp +++ b/src/gamedata/textures/formats/tgatexture.cpp @@ -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;