mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +00:00
- use software mipmaps for truecolor for scaled textures
This commit is contained in:
parent
3fc9dd4144
commit
14e9e3ac56
1 changed files with 2 additions and 1 deletions
|
@ -154,7 +154,7 @@ const uint32_t *FSoftwareTexture::GetPixelsBgra()
|
|||
else
|
||||
{
|
||||
auto tempbuffer = mTexture->CreateTexBuffer(0, mBufferFlags);
|
||||
PixelsBgra.Resize(GetWidth()*GetHeight());
|
||||
CreatePixelsBgraWithMipmaps();
|
||||
PalEntry *pe = (PalEntry*)tempbuffer.mBuffer;
|
||||
for (int y = 0; y < GetHeight(); y++)
|
||||
{
|
||||
|
@ -163,6 +163,7 @@ const uint32_t *FSoftwareTexture::GetPixelsBgra()
|
|||
PixelsBgra[y + x * GetHeight()] = pe[x + y * GetWidth()];
|
||||
}
|
||||
}
|
||||
GenerateBgraMipmaps();
|
||||
}
|
||||
}
|
||||
return PixelsBgra.Data();
|
||||
|
|
Loading…
Reference in a new issue