From 9f8dee45c49aca39323e41ebf98434114aa39236 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Mon, 25 Jan 2016 21:44:08 -0600 Subject: [PATCH] Fixed: 0 was accidentally not allowed as transparent for grayscale - I don't know what I was thinking when I wrote that. --- src/textures/pngtexture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/textures/pngtexture.cpp b/src/textures/pngtexture.cpp index 7a7e4960d..5a3ae960a 100644 --- a/src/textures/pngtexture.cpp +++ b/src/textures/pngtexture.cpp @@ -302,7 +302,7 @@ FPNGTexture::FPNGTexture (FileReader &lump, int lumpnum, const FString &filename case 0: // Grayscale if (!bAlphaTexture) { - if (colortype == 0 && HaveTrans && NonPaletteTrans[0] != 0 && NonPaletteTrans[0] < 256) + if (colortype == 0 && HaveTrans && NonPaletteTrans[0] < 256) { bMasked = true; PaletteSize = 256;