diff options
author | Erik Kundiman <erik@megapahit.org> | 2024-11-13 12:12:49 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2024-11-13 12:12:49 +0800 |
commit | 4ffc623e0fbb3e8a8559d7d833d70cb759ff8ebc (patch) | |
tree | b699a71b4439219b78055edebe0165cf4f37ff0c /indra/llrender/llvertexbuffer.cpp | |
parent | 362d0668a5927a34856233266bc6559889a4b6ac (diff) | |
parent | c654dac4b7593355a5754042d0b43e03924b3efb (diff) |
Merge remote-tracking branch 'secondlife/release/2024.09-ExtraFPS' into 2024.09-ExtraFPS
Diffstat (limited to 'indra/llrender/llvertexbuffer.cpp')
-rw-r--r-- | indra/llrender/llvertexbuffer.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/llrender/llvertexbuffer.cpp b/indra/llrender/llvertexbuffer.cpp index 091c43c19c..cc0329c6f8 100644 --- a/indra/llrender/llvertexbuffer.cpp +++ b/indra/llrender/llvertexbuffer.cpp @@ -272,11 +272,13 @@ static GLuint gen_buffer() { LL_PROFILE_ZONE_NAMED_CATEGORY_VERTEX("gen buffer"); sIndex = pool_size; +#if !LL_DARWIN if (!gGLManager.mIsAMD) { glGenBuffers(pool_size, sNamePool); } else +#endif { // work around for AMD driver bug for (U32 i = 0; i < pool_size; ++i) { @@ -942,6 +944,10 @@ void LLVertexBuffer::drawArrays(U32 mode, U32 first, U32 count) const void LLVertexBuffer::initClass(LLWindow* window) { llassert(sVBOPool == nullptr); + + LL_INFOS() << "VBO Pooling Disabled" << LL_ENDL; + sVBOPool = new LLAppleVBOPool(); + //if (gGLManager.mIsApple) if(0) { |