Bug fix of LLPipeline::setRenderDebugFeatureControl

This commit has no effect on how the viewer behaves currently.
This commit is contained in:
Aleric Inglewood
2013-06-07 16:19:46 +02:00
parent c5489932cf
commit e59cefa0cc
2 changed files with 2 additions and 2 deletions

View File

@@ -170,7 +170,7 @@ static bool handleRenderPerfTestChanged(const LLSD& newvalue)
LLPipeline::RENDER_TYPE_CLASSIC_CLOUDS,
LLPipeline::RENDER_TYPE_HUD_PARTICLES,
LLPipeline::END_RENDER_TYPES);
gPipeline.setRenderDebugFeatureControl(LLPipeline::RENDER_DEBUG_FEATURE_UI, false);
gPipeline.setRenderDebugFeatureControl(~(U32)0, false); // Reset all RENDER_DEBUG_FEATURE_* flags.
}
else
{

View File

@@ -5951,7 +5951,7 @@ void LLPipeline::setRenderDebugFeatureControl(U32 bit, bool value)
}
else
{
gPipeline.mRenderDebugFeatureMask &= !bit;
gPipeline.mRenderDebugFeatureMask &= ~bit;
}
}