Replaced some opengl fixed functions with shaders. Temporary ShyotlUseLegacyRenderPath setting to debug if this change actually improves framerate at all (setting not tied to callbacks. Have to toggle shaders to have stuff pick up the setting change)
This commit is contained in:
@@ -266,11 +266,17 @@ BOOL LLTexLayerSetBuffer::render()
|
||||
BOOL upload_now = needsUploadNow();
|
||||
BOOL success = TRUE;
|
||||
|
||||
//hack to use fixed function when updating tex layer sets
|
||||
bool no_ff = LLGLSLShader::sNoFixedFunction;
|
||||
LLGLSLShader::sNoFixedFunction = false;
|
||||
|
||||
// Composite the color data
|
||||
LLGLSUIDefault gls_ui;
|
||||
success &= mTexLayerSet->render( mOrigin.mX, mOrigin.mY, mFullWidth, mFullHeight );
|
||||
gGL.flush();
|
||||
|
||||
LLGLSLShader::sNoFixedFunction = no_ff;
|
||||
|
||||
if( upload_now )
|
||||
{
|
||||
if (!success)
|
||||
|
||||
Reference in New Issue
Block a user