From 89ff99264b6ae4db949e8539fea9582b6f7ebe97 Mon Sep 17 00:00:00 2001 From: Erik Kundiman Date: Sun, 10 Sep 2023 10:47:55 +0800 Subject: GL_RGBA16F is used when there's no GL_RGBA16 --- indra/newview/pipeline.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'indra') 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) { -- cgit v1.2.3