diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-01-26 17:39:44 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-01-26 17:39:44 +0000 |
commit | c15cf30abf450626cde18769953acf457dccbad8 (patch) | |
tree | cabde393e83775e2ca0e1af1c45ba686ba7c28b7 | |
parent | Remove the static texture cache (diff) | |
download | ilt-c15cf30abf450626cde18769953acf457dccbad8.tar.bz2 ilt-c15cf30abf450626cde18769953acf457dccbad8.tar.xz ilt-c15cf30abf450626cde18769953acf457dccbad8.zip |
Always set pixel unpack alignment before generating font texture content
-rw-r--r-- | ui/font.cpp | 1 |
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()); |