summaryrefslogtreecommitdiff
path: root/indra/newview/pipeline.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/pipeline.cpp')
-rw-r--r--indra/newview/pipeline.cpp9
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);