mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-17 22:55:38 +00:00
Enabled linear interpolation for font texture minifications.
This commit is contained in:
parent
a1027c2580
commit
9b1fb95865
|
@ -21,6 +21,7 @@ std::map<std::pair<std::string, int>, std::weak_ptr<Font>> Font::sFontMap;
|
|||
Font::Font(int size, const std::string& path)
|
||||
: mRenderer {Renderer::getInstance()}
|
||||
, mSize(size)
|
||||
, mMaxGlyphHeight {0}
|
||||
, mPath(path)
|
||||
{
|
||||
if (mSize < 9) {
|
||||
|
@ -32,8 +33,6 @@ Font::Font(int size, const std::string& path)
|
|||
LOG(LogWarning) << "Requested font size too large, changing to maximum supported size";
|
||||
}
|
||||
|
||||
mMaxGlyphHeight = 0;
|
||||
|
||||
if (!sLibrary)
|
||||
initLibrary();
|
||||
|
||||
|
@ -592,7 +591,7 @@ void Font::FontTexture::initTexture()
|
|||
{
|
||||
assert(textureId == 0);
|
||||
textureId = Renderer::getInstance()->createTexture(
|
||||
Renderer::TextureType::RED, false, false, false, textureSize.x, textureSize.y, nullptr);
|
||||
Renderer::TextureType::RED, true, false, false, textureSize.x, textureSize.y, nullptr);
|
||||
}
|
||||
|
||||
void Font::FontTexture::deinitTexture()
|
||||
|
|
Loading…
Reference in a new issue