From c15cf30abf450626cde18769953acf457dccbad8 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 26 Jan 2024 17:39:44 +0000 Subject: Always set pixel unpack alignment before generating font texture content --- ui/font.cpp | 1 + 1 file changed, 1 insertion(+) 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()); -- cgit v1.2.3