diff options
Diffstat (limited to 'indra/newview/pipeline.cpp')
| -rw-r--r-- | indra/newview/pipeline.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp index bccff55a2c..2b45892ff4 100644 --- a/indra/newview/pipeline.cpp +++ b/indra/newview/pipeline.cpp @@ -8906,6 +8906,13 @@ void LLPipeline::renderDeferredLighting() LLRenderTarget *screen_target = &mRT->screen; LLRenderTarget* deferred_light_target = &mRT->deferredLight; + // A failed depth allocation leaves these targets with no textures. + // Binding them logs the empty-target warnings and then faults in the GL driver. + if (screen_target->getNumTextures() == 0) + { + return; + } + { LL_PROFILE_ZONE_NAMED_CATEGORY_PIPELINE("deferred"); LLViewerCamera *camera = LLViewerCamera::getInstance(); |
