From d68cd3aa80a2dc88fd6080dee4bc0136dc80a871 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 17 Dec 2018 17:44:22 +0100 Subject: [PATCH] - fixed: Alpha textures need to use a color's grayscale value, not their red channel. --- src/swrenderer/textures/r_swtexture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/swrenderer/textures/r_swtexture.cpp b/src/swrenderer/textures/r_swtexture.cpp index 1b6192eee..89f6f3bda 100644 --- a/src/swrenderer/textures/r_swtexture.cpp +++ b/src/swrenderer/textures/r_swtexture.cpp @@ -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(); } } }