diff options
| author | Erik Kundiman <erik@megapahit.org> | 2023-09-10 10:47:55 +0800 | 
|---|---|---|
| committer | Erik Kundiman <erik@megapahit.org> | 2023-09-10 10:47:55 +0800 | 
| commit | 89ff99264b6ae4db949e8539fea9582b6f7ebe97 (patch) | |
| tree | cd478eacf31c01dd16b218f2a097602876b65547 | |
| parent | ce8972461cfd435c6259e23c37a99173230f3633 (diff) | |
GL_RGBA16F is used when there's no GL_RGBA16
| -rw-r--r-- | indra/newview/pipeline.cpp | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp index 5181279633..7b379da2a9 100644 --- a/indra/newview/pipeline.cpp +++ b/indra/newview/pipeline.cpp @@ -895,11 +895,15 @@ bool LLPipeline::allocateScreenBuffer(U32 resX, U32 resY, U32 samples)  		if (!mOcclusionDepth.allocate(resX/occlusion_divisor, resY/occlusion_divisor, 0, TRUE, FALSE, LLTexUnit::TT_RECT_TEXTURE, FALSE, samples)) return false;  		if (!addDeferredAttachments(mDeferredScreen)) return false; +#if GL_VERSION_1_1  		GLuint screenFormat = GL_RGBA16;  		if (gGLManager.mIsAMD)  		{  			screenFormat = GL_RGBA12;  		} +#else +		GLuint screenFormat = GL_RGBA16F; +#endif  		if (gGLManager.mGLVersion < 4.f && gGLManager.mIsNVIDIA)  		{ | 
