Skip to content

Commit

Permalink
- fixed crash with texture upscaling in the truecolor software renderer.
Browse files Browse the repository at this point in the history
Based on: 4746d0c
  • Loading branch information
drfrag666 authored and coelckers committed Jun 8, 2020
1 parent 68e0e52 commit 65df05c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rendering/swrenderer/textures/r_swtexture.cpp
Expand Up @@ -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++)
Expand Down

0 comments on commit 65df05c

Please sign in to comment.