summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2011-07-11 12:14:06 -0500
committerDave Parks <davep@lindenlab.com>2011-07-11 12:14:06 -0500
commit9db49b4448abae1e171fd1b40d1a7049b6762353 (patch)
tree5a15f31078ebf95c3940c00c0c94177bb4c7e3b3 /indra
parentb5149a63f9a3d4eeaa3c8807f9c65d04bbd113bf (diff)
SH-2038 Disable usage of stream vbo on mac and make flexi's use stream vbo if stream vbo disabled (effectively disables usage of vertex buffers for flexible objects on mac)
Diffstat (limited to 'indra')
-rw-r--r--indra/llrender/llvertexbuffer.cpp8
-rw-r--r--indra/newview/featuretable_mac.txt4
-rw-r--r--indra/newview/lldrawable.cpp5
3 files changed, 8 insertions, 9 deletions
diff --git a/indra/llrender/llvertexbuffer.cpp b/indra/llrender/llvertexbuffer.cpp
index 53ddca124b..b96023f613 100644
--- a/indra/llrender/llvertexbuffer.cpp
+++ b/indra/llrender/llvertexbuffer.cpp
@@ -978,17 +978,11 @@ BOOL LLVertexBuffer::useVBOs() const
{
//it's generally ineffective to use VBO for things that are streaming on apple
-#if LL_DARWIN
- if (!mUsage || mUsage == GL_STREAM_DRAW_ARB)
- {
- return FALSE;
- }
-#else
if (!mUsage)
{
return FALSE;
}
-#endif
+
return TRUE;
}
diff --git a/indra/newview/featuretable_mac.txt b/indra/newview/featuretable_mac.txt
index 2f9f82fd9e..2784302f5a 100644
--- a/indra/newview/featuretable_mac.txt
+++ b/indra/newview/featuretable_mac.txt
@@ -1,4 +1,4 @@
-version 27
+version 28
// NOTE: This is mostly identical to featuretable_mac.txt with a few differences
// Should be combined into one table
@@ -64,7 +64,7 @@ RenderDeferred 1 1
RenderDeferredSSAO 1 1
RenderShadowDetail 1 2
WatchdogDisabled 1 1
-RenderUseStreamVBO 1 1
+RenderUseStreamVBO 1 0
RenderFSAASamples 1 16
//
diff --git a/indra/newview/lldrawable.cpp b/indra/newview/lldrawable.cpp
index ad3710843c..90fcb94088 100644
--- a/indra/newview/lldrawable.cpp
+++ b/indra/newview/lldrawable.cpp
@@ -1529,6 +1529,11 @@ BOOL LLDrawable::isAnimating() const
return TRUE;
}
+ if (!LLVertexBuffer::sUseStreamDraw && mVObjp->isFlexible())
+ {
+ return TRUE;
+ }
+
return FALSE;
}