- fixed crash with texture upscaling in the truecolor software renderer.

Based on: 4746d0c626
This commit is contained in:
drfrag 2020-06-08 22:17:04 +02:00 committed by Christoph Oelckers
parent 68e0e52aaf
commit 65df05cba2

View file

@ -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++)