Skip to content

Commit

Permalink
- use software mipmaps for truecolor for scaled textures
Browse files Browse the repository at this point in the history
  • Loading branch information
Rachael Alexanderson committed Dec 15, 2018
1 parent 3fc9dd4 commit 14e9e3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/swrenderer/textures/r_swtexture.cpp
Expand Up @@ -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++)
{
Expand All @@ -163,6 +163,7 @@ const uint32_t *FSoftwareTexture::GetPixelsBgra()
PixelsBgra[y + x * GetHeight()] = pe[x + y * GetWidth()];
}
}
GenerateBgraMipmaps();
}
}
return PixelsBgra.Data();
Expand Down

0 comments on commit 14e9e3a

Please sign in to comment.