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:
@@ -88,6 +88,10 @@ void LLDrawPoolSky::render(S32 pass)
|
||||
mShader = &gObjectFullbrightWaterProgram;
|
||||
mShader->bind();
|
||||
}
|
||||
else if (LLGLSLShader::sNoFixedFunction)
|
||||
{ //just use the UI shader (generic single texture no lighting)
|
||||
gUIProgram.bind();
|
||||
}
|
||||
else
|
||||
{
|
||||
// don't use shaders!
|
||||
|
||||
Reference in New Issue
Block a user