Merge branch 'master' of git://github.com/Shyotl/SingularityViewer
This commit is contained in:
@@ -753,16 +753,15 @@ S32 LLVertexBuffer::determineUsage(S32 usage)
|
|||||||
if (LLRender::sGLCoreProfile)
|
if (LLRender::sGLCoreProfile)
|
||||||
{ //MUST use VBOs for all rendering
|
{ //MUST use VBOs for all rendering
|
||||||
if(!usage)
|
if(!usage)
|
||||||
usage = GL_STREAM_DRAW_ARB;
|
return GL_STREAM_DRAW_ARB;
|
||||||
}
|
}
|
||||||
else if (!sEnableVBOs || !usage)
|
else if (!sEnableVBOs || !usage || (!sUseStreamDraw && usage == GL_STREAM_DRAW_ARB))
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
//Only stream_draw and dynamic_draw are supported when using VBOs, dynamic draw is the default.
|
//Only stream_draw and dynamic_draw are supported when using VBOs, dynamic draw is the default.
|
||||||
//Always use stream_draw VBO if mapping is disabled, or stream is enabled and preferred/expected
|
//Always use stream_draw VBO if mapping is disabled, or stream is preferred or expected
|
||||||
if( sDisableVBOMapping || (sUseStreamDraw && (sPreferStreamDraw || usage == GL_STREAM_DRAW_ARB)))
|
if( sDisableVBOMapping || sPreferStreamDraw || (usage == GL_STREAM_DRAW_ARB))
|
||||||
{
|
{
|
||||||
return GL_STREAM_DRAW_ARB;
|
return GL_STREAM_DRAW_ARB;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11379,17 +11379,6 @@
|
|||||||
<string>Boolean</string>
|
<string>Boolean</string>
|
||||||
<key>Value</key>
|
<key>Value</key>
|
||||||
<integer>1</integer>
|
<integer>1</integer>
|
||||||
</map>
|
|
||||||
<key>RenderUseStreamVBO</key>
|
|
||||||
<map>
|
|
||||||
<key>Comment</key>
|
|
||||||
<string>Use VBO's for stream buffers</string>
|
|
||||||
<key>Persist</key>
|
|
||||||
<integer>1</integer>
|
|
||||||
<key>Type</key>
|
|
||||||
<string>Boolean</string>
|
|
||||||
<key>Value</key>
|
|
||||||
<integer>1</integer>
|
|
||||||
</map>
|
</map>
|
||||||
<key>RenderPreferStreamDraw</key>
|
<key>RenderPreferStreamDraw</key>
|
||||||
<map>
|
<map>
|
||||||
|
|||||||
Reference in New Issue
Block a user