From 89f21f276fe369e6c28abb6ff44200e2cb8098c8 Mon Sep 17 00:00:00 2001 From: Dave Parks Date: Fri, 16 Dec 2022 14:58:02 -0600 Subject: SL-18719 GL 3.0/3.1 compatibility pass. --- indra/newview/featuretable.txt | 3 ++- indra/newview/pipeline.cpp | 9 ++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'indra/newview') diff --git a/indra/newview/featuretable.txt b/indra/newview/featuretable.txt index 407c4801ca..f8a5086130 100644 --- a/indra/newview/featuretable.txt +++ b/indra/newview/featuretable.txt @@ -1,4 +1,4 @@ -version 42 +version 43 // The version number above should be incremented IF AND ONLY IF some // change has been made that is sufficiently important to justify // resetting the graphics preferences of all users to the recommended @@ -297,4 +297,5 @@ list GL3 RenderFSAASamples 0 0 RenderReflectionsEnabled 0 0 RenderReflectionProbeDetail 0 0 +RenderGLMultiThreaded 0 0 diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp index 3aa6551202..744d21b2c9 100644 --- a/indra/newview/pipeline.cpp +++ b/indra/newview/pipeline.cpp @@ -8363,7 +8363,14 @@ void LLPipeline::bindDeferredShader(LLGLSLShader& shader, LLRenderTarget* light_ channel = shader.enableTexture(LLShaderMgr::DEFERRED_LIGHT, light_target->getUsage()); if (channel > -1) { - light_target->bindTexture(0, channel, LLTexUnit::TFO_POINT); + if (light_target->isComplete()) + { + light_target->bindTexture(0, channel, LLTexUnit::TFO_POINT); + } + else + { + gGL.getTexUnit(channel)->bindFast(LLViewerFetchedTexture::sWhiteImagep); + } } channel = shader.enableTexture(LLShaderMgr::DEFERRED_BLOOM); -- cgit v1.2.3