mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-18 15:15:37 +00:00
Increased the font texture buffers to avoid crashes when running at low resolutions.
This commit is contained in:
parent
a3c2f831c8
commit
b5b70a4931
|
@ -131,9 +131,10 @@ void Font::unloadTextures()
|
|||
Font::FontTexture::FontTexture(const int mSize)
|
||||
{
|
||||
textureId = 0;
|
||||
// I'm not entirely sure if the 16 and 4 constants are correct, but they seem to provide
|
||||
// a texture buffer large enough to hold the fonts. (Otherwise the application would crash.)
|
||||
textureSize = Vector2i(mSize * 16, mSize * 4);
|
||||
// I'm not entirely sure if the 16 and 6 constants are correct, but they seem to provide
|
||||
// a texture buffer large enough to hold the fonts (otherwise the application would crash).
|
||||
// This logic is obviously a hack though and needs to be properly reviewed and improved.
|
||||
textureSize = Vector2i(mSize * 16, mSize * 6);
|
||||
writePos = Vector2i::Zero();
|
||||
rowHeight = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue