diff options
| author | Dave Parks <davep@lindenlab.com> | 2011-02-01 14:46:40 -0600 | 
|---|---|---|
| committer | Dave Parks <davep@lindenlab.com> | 2011-02-01 14:46:40 -0600 | 
| commit | 7c5c82cb116b2dfd163055994803e07a1bfd5a8b (patch) | |
| tree | a1b79c7fb16721e9fb65ab7582512372db713c9b | |
| parent | b3a8189e05244c3c5aed8ca161a708bc4c22eacd (diff) | |
| parent | 40e1041871a41cbd944f702c271f818accbd9057 (diff) | |
merge
| -rwxr-xr-x | indra/newview/pipeline.cpp | 12 | 
1 files changed, 6 insertions, 6 deletions
| diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp index ec3d0c10ab..9342e07a1d 100755 --- a/indra/newview/pipeline.cpp +++ b/indra/newview/pipeline.cpp @@ -3141,7 +3141,7 @@ void render_hud_elements()  	gGL.color4f(1,1,1,1);  	if (!LLPipeline::sReflectionRender && gPipeline.hasRenderDebugFeatureMask(LLPipeline::RENDER_DEBUG_FEATURE_UI))  	{ -		LLGLEnable multisample(GL_MULTISAMPLE_ARB); +		LLGLEnable multisample(gSavedSettings.getU32("RenderFSAASamples") > 0 ? GL_MULTISAMPLE_ARB : 0);  		gViewerWindow->renderSelections(FALSE, FALSE, FALSE); // For HUD version in render_ui_3d()  		// Draw the tracking overlays @@ -3385,7 +3385,7 @@ void LLPipeline::renderGeom(LLCamera& camera, BOOL forceVBOUpdate)  	glMatrixMode(GL_MODELVIEW);  	LLGLSPipeline gls_pipeline; -	LLGLEnable multisample(GL_MULTISAMPLE_ARB); +	LLGLEnable multisample(gSavedSettings.getU32("RenderFSAASamples") > 0 ? GL_MULTISAMPLE_ARB : 0);  	LLGLState gls_color_material(GL_COLOR_MATERIAL, mLightingDetail < 2); @@ -3625,7 +3625,7 @@ void LLPipeline::renderGeomDeferred(LLCamera& camera)  		}  	} -	LLGLEnable multisample(GL_MULTISAMPLE_ARB); +	LLGLEnable multisample(gSavedSettings.getU32("RenderFSAASamples") > 0 ? GL_MULTISAMPLE_ARB : 0);  	LLVertexBuffer::unbind(); @@ -3714,7 +3714,7 @@ void LLPipeline::renderGeomPostDeferred(LLCamera& camera)  	LLGLEnable cull(GL_CULL_FACE); -	LLGLEnable multisample(GL_MULTISAMPLE_ARB); +	LLGLEnable multisample(gSavedSettings.getU32("RenderFSAASamples") > 0 ? GL_MULTISAMPLE_ARB : 0);  	calcNearbyLights(camera);  	setupHWLights(NULL); @@ -6298,7 +6298,7 @@ void LLPipeline::renderBloom(BOOL for_snapshot, F32 zoom_factor, int subfield)  		gGL.getTexUnit(1)->bind(&mScreen);  		gGL.getTexUnit(1)->activate(); -		LLGLEnable multisample(GL_MULTISAMPLE_ARB); +		LLGLEnable multisample(gSavedSettings.getU32("RenderFSAASamples") > 0 ? GL_MULTISAMPLE_ARB : 0);  		buff->setBuffer(mask);  		buff->drawArrays(LLRender::TRIANGLE_STRIP, 0, 3); @@ -6763,7 +6763,7 @@ void LLPipeline::renderDeferredLighting()  							0, 0, mDeferredDepth.getWidth(), mDeferredDepth.getHeight(), GL_DEPTH_BUFFER_BIT, GL_NEAREST);	  		} -		LLGLEnable multisample(GL_MULTISAMPLE_ARB); +		LLGLEnable multisample(gSavedSettings.getU32("RenderFSAASamples") > 0 ? GL_MULTISAMPLE_ARB : 0);  		if (gPipeline.hasRenderType(LLPipeline::RENDER_TYPE_HUD))  		{ | 
