summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-01-26 17:39:44 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2024-01-26 17:39:44 +0000
commitc15cf30abf450626cde18769953acf457dccbad8 (patch)
treecabde393e83775e2ca0e1af1c45ba686ba7c28b7 /ui
parentRemove the static texture cache (diff)
downloadilt-c15cf30abf450626cde18769953acf457dccbad8.tar.bz2
ilt-c15cf30abf450626cde18769953acf457dccbad8.tar.xz
ilt-c15cf30abf450626cde18769953acf457dccbad8.zip
Always set pixel unpack alignment before generating font texture content
Diffstat (limited to 'ui')
-rw-r--r--ui/font.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/font.cpp b/ui/font.cpp
index 305e0f3..f610a1b 100644
--- a/ui/font.cpp
+++ b/ui/font.cpp
@@ -77,6 +77,7 @@ Font::generateChars(const utf8_string_view chars) const
if (charsData.find(codepoint) == charsData.end()) {
if (!ft) {
ft.emplace();
+ glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
}
if (!face) {
face.emplace(*ft, path.c_str());