summaryrefslogtreecommitdiff
path: root/indra/llrender/llfontvertexbuffer.h
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2024-09-26 18:09:32 +0300
committerAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2024-09-26 20:56:45 +0300
commit440c7b20dab3aa09c04bf3e72b4997181e585cbb (patch)
tree107b512ec06cf13a50b5df76f2b901ee5008e581 /indra/llrender/llfontvertexbuffer.h
parent49a2c136f99cf90abc94f1ce84d3c6f2be2815d0 (diff)
#2411 Allow disabling and enabling LLFontVertexBuffer
for testing purposes
Diffstat (limited to 'indra/llrender/llfontvertexbuffer.h')
-rw-r--r--indra/llrender/llfontvertexbuffer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/llrender/llfontvertexbuffer.h b/indra/llrender/llfontvertexbuffer.h
index 67cf2ca13c..59cb536b74 100644
--- a/indra/llrender/llfontvertexbuffer.h
+++ b/indra/llrender/llfontvertexbuffer.h
@@ -78,6 +78,8 @@ public:
F32* right_x = NULL,
bool use_ellipses = false,
bool use_color = true);
+
+ static void enableBufferCollection(bool enable) { sEnableBufferCollection = enable; }
private:
void genBuffers(const LLFontGL* fontp,
@@ -114,6 +116,8 @@ private:
F32 mLastScaleX = 1.f;
F32 mLastScaleY = 1.f;
LLCoordGL mLastOrigin;
+
+ static bool sEnableBufferCollection;
};
#endif