diff options
| author | Leslie Linden <leslie@lindenlab.com> | 2011-11-16 10:00:41 -0800 | 
|---|---|---|
| committer | Leslie Linden <leslie@lindenlab.com> | 2011-11-16 10:00:41 -0800 | 
| commit | 6343c769ce402c31ae10944b5fef72fb70e6758a (patch) | |
| tree | aab3f8bd69ecfdc0cfef367440327aff21ac2256 | |
| parent | d71736f3d92f1a276d4aafcbf70c6a8597457220 (diff) | |
SH-1865 FIX -- removed some old non-deferred rendering code that was preventing anti-aliasing from working when GL_ARB_texture_multisample is unsupported
| -rw-r--r-- | indra/llrender/llgl.cpp | 8 | ||||
| -rw-r--r-- | indra/llrender/llgl.h | 1 | ||||
| -rw-r--r-- | indra/newview/pipeline.cpp | 6 | 
3 files changed, 2 insertions, 13 deletions
| diff --git a/indra/llrender/llgl.cpp b/indra/llrender/llgl.cpp index 20ca189e7f..946e602fee 100644 --- a/indra/llrender/llgl.cpp +++ b/indra/llrender/llgl.cpp @@ -835,14 +835,6 @@ std::string LLGLManager::getRawGLString()  	return gl_string;  } -U32 LLGLManager::getNumFBOFSAASamples(U32 samples) -{ -	samples = llmin(samples, (U32) mMaxColorTextureSamples); -	samples = llmin(samples, (U32) mMaxDepthTextureSamples); -	samples = llmin(samples, (U32) 4); -	return samples; -} -  void LLGLManager::shutdownGL()  {  	if (mInited) diff --git a/indra/llrender/llgl.h b/indra/llrender/llgl.h index dee7ec0739..6a147b8e19 100644 --- a/indra/llrender/llgl.h +++ b/indra/llrender/llgl.h @@ -150,7 +150,6 @@ public:  	void printGLInfoString();  	void getGLInfo(LLSD& info); -	U32 getNumFBOFSAASamples(U32 desired_samples = 32);  	// In ALL CAPS  	std::string mGLVendor;  	std::string mGLVendorShort; diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp index 230bf0e9fd..5e9f0e3efe 100644 --- a/indra/newview/pipeline.cpp +++ b/indra/newview/pipeline.cpp @@ -658,7 +658,7 @@ void LLPipeline::allocatePhysicsBuffer()  void LLPipeline::allocateScreenBuffer(U32 resX, U32 resY)  {  	refreshCachedSettings(); -	U32 samples = gGLManager.getNumFBOFSAASamples(RenderFSAASamples); +	U32 samples = RenderFSAASamples;  	//try to allocate screen buffers at requested resolution and samples  	// - on failure, shrink number of samples and try again @@ -1165,9 +1165,7 @@ BOOL LLPipeline::canUseWindLightShadersOnObjects() const  BOOL LLPipeline::canUseAntiAliasing() const  { -	// We can use anti-aliasing if the GL manager can support some multisampling -	BOOL can_fsaa = (gGLManager.getNumFBOFSAASamples(2) > 1); -	return can_fsaa; +	return TRUE;  }  void LLPipeline::unloadShaders() | 
