summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2024-10-19 15:00:30 +0300
committerAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2024-10-20 16:48:27 +0300
commit1924c44caf5d0f842a0c1d5deaa110b3c3d18df7 (patch)
tree02e31965b7a8ef72d8e0bb0312e53aa58a006e2d /indra/newview
parentb2bb4d25cc5bcfa3fbe94f145b21e422ee55ba49 (diff)
viewer#2741 Don't reallocate image conversion buffer all the time
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llviewerwindow.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/llviewerwindow.cpp b/indra/newview/llviewerwindow.cpp
index 0e7d82fd90..4bd1cdd6a1 100644
--- a/indra/newview/llviewerwindow.cpp
+++ b/indra/newview/llviewerwindow.cpp
@@ -1936,6 +1936,11 @@ LLViewerWindow::LLViewerWindow(const Params& p)
}
LLFontManager::initClass();
+
+ // fonts use an GL_UNSIGNED_BYTE image format,
+ // so they need convertion, init buffers if needed
+ LLImageGL::allocateConversionBuffer();
+
// Init font system, load default fonts and generate basic glyphs
// currently it takes aprox. 0.5 sec and we would load these fonts anyway
// before login screen.