From 65df05cba2f5b556fc835b7848f5c4d8b78a365b Mon Sep 17 00:00:00 2001 From: drfrag Date: Mon, 8 Jun 2020 22:17:04 +0200 Subject: [PATCH] - fixed crash with texture upscaling in the truecolor software renderer. Based on: https://github.com/coelckers/gzdoom/commit/4746d0c626d42e03df089ec0121557dc5fc4fa79 --- src/rendering/swrenderer/textures/r_swtexture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rendering/swrenderer/textures/r_swtexture.cpp b/src/rendering/swrenderer/textures/r_swtexture.cpp index dbd218c3d4..5b35a95166 100644 --- a/src/rendering/swrenderer/textures/r_swtexture.cpp +++ b/src/rendering/swrenderer/textures/r_swtexture.cpp @@ -176,7 +176,7 @@ const uint32_t *FSoftwareTexture::GetPixelsBgra() } else { - auto tempbuffer = mSource->CreateTexBuffer(0, mBufferFlags); + auto tempbuffer = mSource->CreateTexBuffer(0, mBufferFlags | CTF_Upscale); CreatePixelsBgraWithMipmaps(); PalEntry *pe = (PalEntry*)tempbuffer.mBuffer; for (int y = 0; y < GetPhysicalHeight(); y++)