From d6d345240e73c18a53b5b43d7a013bdf18766fb7 Mon Sep 17 00:00:00 2001 From: Erik Kundiman Date: Thu, 10 Sep 2026 19:36:59 +0800 Subject: Include platforms other than arm64 on Apple GPU otherwise you would get distorted fonts on Windows x64 on Parallels, at least. --- indra/llrender/llvertexbuffer.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'indra/llrender/llvertexbuffer.cpp') diff --git a/indra/llrender/llvertexbuffer.cpp b/indra/llrender/llvertexbuffer.cpp index 62a102c166..88bc28920d 100644 --- a/indra/llrender/llvertexbuffer.cpp +++ b/indra/llrender/llvertexbuffer.cpp @@ -948,14 +948,14 @@ void LLVertexBuffer::initClass(LLWindow* window) { llassert(sVBOPool == nullptr); -#if LL_DARWIN || LL_ARM64 +//#if LL_DARWIN || LL_ARM64 if (gGLManager.mIsApple) { LL_INFOS() << "VBO Pooling Disabled" << LL_ENDL; sVBOPool = new LLAppleVBOPool(); } else -#endif +//#endif { LL_INFOS() << "VBO Pooling Enabled" << LL_ENDL; sVBOPool = new LLDefaultVBOPool(); @@ -1293,12 +1293,12 @@ U8* LLVertexBuffer::mapVertexBuffer(LLVertexBuffer::AttributeType type, U32 inde count = mNumVerts - index; } -#if LL_DARWIN || LL_ARM64 +//#if LL_DARWIN || LL_ARM64 // Region tracking not needed on apple silicon - it recreates entire buffer // While mIsApple can be encountered under windows, this is a // macOS OpenGL behavior workaround. LL_ARM64 check might be not needed if (!gGLManager.mIsApple) -#endif +//#endif { U32 start = mOffsets[type] + sTypeSize[type] * index; U32 end = start + sTypeSize[type] * count-1; @@ -1335,9 +1335,9 @@ U8* LLVertexBuffer::mapIndexBuffer(U32 index, S32 count) count = mNumIndices-index; } -#if LL_DARWIN || LL_ARM64 +//#if LL_DARWIN || LL_ARM64 if (!gGLManager.mIsApple) -#endif +//#endif { U32 start = sizeof(U16) * index; U32 end = start + sizeof(U16) * count-1; @@ -1372,7 +1372,7 @@ U8* LLVertexBuffer::mapIndexBuffer(U32 index, S32 count) // dst -- mMappedData or mMappedIndexData void LLVertexBuffer::flush_vbo(GLenum target, U32 start, U32 end, void* data, U8* dst) { -#if LL_DARWIN || LL_ARM64 +//#if LL_DARWIN || LL_ARM64 if (gGLManager.mIsApple) { // on OS X, flush_vbo doesn't actually write to the GL buffer, so be sure to call @@ -1384,7 +1384,7 @@ void LLVertexBuffer::flush_vbo(GLenum target, U32 start, U32 end, void* data, U8 memcpy(dst+start, data, end-start+1); } else -#endif +//#endif { llassert(target == GL_ARRAY_BUFFER ? sGLRenderBuffer == mGLBuffer : sGLRenderIndices == mGLIndices); @@ -1439,7 +1439,7 @@ void LLVertexBuffer::_unmapBuffer() } }; -#if LL_DARWIN || LL_ARM64 +//#if LL_DARWIN || LL_ARM64 if (gGLManager.mIsApple) { STOP_GLERROR; @@ -1486,7 +1486,7 @@ void LLVertexBuffer::_unmapBuffer() STOP_GLERROR; } else -#endif // LL_DARWIN || LL_ARM64 +//#endif // LL_DARWIN || LL_ARM64 { if (!mMappedVertexRegions.empty()) { -- cgit v1.3