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:
@@ -197,14 +197,14 @@ void LLDrawPool::renderPostDeferred(S32 pass)
|
||||
//virtual
|
||||
void LLDrawPool::endRenderPass( S32 pass )
|
||||
{
|
||||
for (U32 i = 0; i < (U32)gGLManager.mNumTextureImageUnits; i++)
|
||||
/*for (U32 i = 0; i < (U32)gGLManager.mNumTextureImageUnits; i++)
|
||||
{ //dummy cleanup of any currently bound textures
|
||||
if (gGL.getTexUnit(i)->getCurrType() != LLTexUnit::TT_NONE)
|
||||
{
|
||||
gGL.getTexUnit(i)->unbind(gGL.getTexUnit(i)->getCurrType());
|
||||
gGL.getTexUnit(i)->disable();
|
||||
}
|
||||
}
|
||||
}*/
|
||||
gGL.getTexUnit(0)->activate();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user