mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 15:22: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
|
else
|
||||||
{
|
{
|
||||||
auto tempbuffer = mTexture->CreateTexBuffer(0, mBufferFlags);
|
auto tempbuffer = mTexture->CreateTexBuffer(0, mBufferFlags);
|
||||||
PixelsBgra.Resize(GetWidth()*GetHeight());
|
CreatePixelsBgraWithMipmaps();
|
||||||
PalEntry *pe = (PalEntry*)tempbuffer.mBuffer;
|
PalEntry *pe = (PalEntry*)tempbuffer.mBuffer;
|
||||||
for (int y = 0; y < GetHeight(); y++)
|
for (int y = 0; y < GetHeight(); y++)
|
||||||
{
|
{
|
||||||
|
@ -163,6 +163,7 @@ const uint32_t *FSoftwareTexture::GetPixelsBgra()
|
||||||
PixelsBgra[y + x * GetHeight()] = pe[x + y * GetWidth()];
|
PixelsBgra[y + x * GetHeight()] = pe[x + y * GetWidth()];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
GenerateBgraMipmaps();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return PixelsBgra.Data();
|
return PixelsBgra.Data();
|
||||||
|
|
Loading…
Reference in a new issue