Let mac users choose their VBO fate

This commit is contained in:
Siana Gearz
2011-02-06 00:35:18 +01:00
parent e3932629c8
commit 5717f779fa
3 changed files with 2 additions and 22 deletions

View File

@@ -767,19 +767,10 @@ void LLVertexBuffer::resizeBuffer(S32 newnverts, S32 newnindices)
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;
}

View File

@@ -103,12 +103,9 @@ void LLFloaterHardwareSettings::refreshEnabledState()
childSetEnabled("vbo_stream", FALSE);
}
else
#if LL_DARWIN
childSetEnabled("vbo_stream", FALSE); //Hardcoded disable on mac
childSetValue("vbo_stream", (LLSD::Boolean) FALSE); //Hardcoded disable on mac
#else
{
childSetEnabled("vbo_stream", LLVertexBuffer::sEnableVBOs);
#endif
}
// if no windlight shaders, turn off nighttime brightness, gamma, and fog distance

View File

@@ -102,10 +102,6 @@
#include "llspatialpartition.h"
#include "llmutelist.h"
#if !LL_DARWIN
#include "llfloaterhardwaresettings.h"
#endif
// [RLVa:KB]
#include "rlvhandler.h"
// [/RLVa:KB]
@@ -4963,10 +4959,6 @@ void LLPipeline::setUseVBO(BOOL use_vbo)
resetVertexBuffers();
LLVertexBuffer::initClass(use_vbo);
#if !LL_DARWIN
if(LLFloaterHardwareSettings::isOpen())
LLFloaterHardwareSettings::instance()->refreshEnabledState();
#endif
}
}