mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 05:51:20 +00:00
- fixed crash with texture upscaling in the software renderer.
This commit is contained in:
parent
9bf0f9bbfc
commit
4746d0c626
1 changed files with 2 additions and 3 deletions
|
@ -130,9 +130,8 @@ const uint8_t *FSoftwareTexture::GetPixels(int style)
|
|||
}
|
||||
else
|
||||
{
|
||||
auto f = mBufferFlags;
|
||||
if (shouldUpscale(mTexture, scaleFlagFromUseType(mTexture->GetUseType()))) f |= CTF_Upscale;
|
||||
auto tempbuffer = mSource->CreateTexBuffer(0, mBufferFlags);
|
||||
auto f = mBufferFlags | CTF_Upscale;
|
||||
auto tempbuffer = mSource->CreateTexBuffer(0, f);
|
||||
Pixels.Resize(GetPhysicalWidth()*GetPhysicalHeight());
|
||||
PalEntry *pe = (PalEntry*)tempbuffer.mBuffer;
|
||||
if (!style)
|
||||
|
|
Loading…
Reference in a new issue