From 7bb6ea9103228b3bf3b28792d8d73e8616471908 Mon Sep 17 00:00:00 2001 From: mobserveur Date: Tue, 23 Jul 2024 02:57:02 +0200 Subject: Apple gpu optimisations based on LL work This commit replaces our former optimisations with LL develop branch work and some tweaks. --- indra/llrender/llrender.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'indra/llrender/llrender.cpp') diff --git a/indra/llrender/llrender.cpp b/indra/llrender/llrender.cpp index 7ca628bac5..0a522c88d7 100644 --- a/indra/llrender/llrender.cpp +++ b/indra/llrender/llrender.cpp @@ -1702,7 +1702,7 @@ void LLRender::flush() if (attribute_mask & LLVertexBuffer::MAP_TEXCOORD0) { - vb->setTexCoordData(mTexcoordsp.get()); + vb->setTexCoord0Data(mTexcoordsp.get()); } if (attribute_mask & LLVertexBuffer::MAP_COLOR) @@ -1710,6 +1710,12 @@ void LLRender::flush() vb->setColorData(mColorsp.get()); } + //LL_INFOS() << "LLVertexBuffer::sMappingMode " << LLVertexBuffer::sMappingMode << LL_ENDL; + if(LLVertexBuffer::sMappingMode > 1) + { + vb->unmapBuffer(); + } + vb->unbind(); sVBCache[vhash] = { vb , std::chrono::steady_clock::now() }; -- cgit v1.2.3