diff --git a/source/build/src/polymost.cpp b/source/build/src/polymost.cpp index 4374b6644..1a70867e3 100644 --- a/source/build/src/polymost.cpp +++ b/source/build/src/polymost.cpp @@ -697,7 +697,7 @@ static void polymost_drawpoly(vec2f_t const * const dpxy, int32_t const n, int32 skyzbufferhack_pass--; } - if (!tilePtr(globalpicnum)) + if (!success) GLInterface.SetColorMask(true); } diff --git a/source/glbackend/gl_texture.cpp b/source/glbackend/gl_texture.cpp index f6d153bd1..a124002d9 100644 --- a/source/glbackend/gl_texture.cpp +++ b/source/glbackend/gl_texture.cpp @@ -96,7 +96,7 @@ FHardwareTexture* GLInstance::CreateIndexedTexture(FTexture* tex) FHardwareTexture* GLInstance::CreateTrueColorTexture(FTexture* tex, int palid, bool checkfulltransparency, bool rgb8bit) { auto palette = palid < 0? nullptr : palmanager.GetPaletteData(palid); - if (palette == nullptr) return nullptr; + if (palid >= 0 && palette == nullptr) return nullptr; auto texbuffer = tex->CreateTexBuffer(palette, CTF_ProcessData); // Check if the texture is fully transparent. When creating a brightmap such textures can be discarded. if (checkfulltransparency) diff --git a/wadsrc/static/filter/blood/tiles/2574.png b/wadsrc/static/filter/blood/tiles/2574.png index a3a76ec3b..cb5d3aa41 100644 Binary files a/wadsrc/static/filter/blood/tiles/2574.png and b/wadsrc/static/filter/blood/tiles/2574.png differ