diff options
| author | Dave Parks <davep@lindenlab.com> | 2022-12-16 14:58:02 -0600 |
|---|---|---|
| committer | Dave Parks <davep@lindenlab.com> | 2022-12-16 14:58:02 -0600 |
| commit | 89f21f276fe369e6c28abb6ff44200e2cb8098c8 (patch) | |
| tree | 36ccc0681fca49f8f9739eac20e3215155a996b3 /indra/newview/pipeline.cpp | |
| parent | 4711241dd523e64b68ef51e2b9e52a95b04e7034 (diff) | |
SL-18719 GL 3.0/3.1 compatibility pass.
Diffstat (limited to 'indra/newview/pipeline.cpp')
| -rw-r--r-- | indra/newview/pipeline.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
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); |
