diff options
author | Dave Parks <davep@lindenlab.com> | 2023-01-11 10:00:15 -0600 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2023-01-11 10:00:15 -0600 |
commit | cd1e7da099b66cbeb510d169a5415e57b617cd37 (patch) | |
tree | 0a0d62174b4e4df1f848e2314f71f72026b48c5c /indra | |
parent | 3ac990e6ce962c2530a902d14a711d1ee996375c (diff) |
SL-18869 Touch up -- Put generateSunShadow call back where it was to fix alpha objects disappearing
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llviewerdisplay.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/indra/newview/llviewerdisplay.cpp b/indra/newview/llviewerdisplay.cpp index c6d2b476db..d1a89a5846 100644 --- a/indra/newview/llviewerdisplay.cpp +++ b/indra/newview/llviewerdisplay.cpp @@ -710,6 +710,12 @@ void display(BOOL rebuild, F32 zoom_factor, int subfield, BOOL for_snapshot) if (!for_snapshot) { + if (gFrameCount > 1 && !for_snapshot) + { //for some reason, ATI 4800 series will error out if you + //try to generate a shadow before the first frame is through + gPipeline.generateSunShadow(*LLViewerCamera::getInstance()); + } + LLVertexBuffer::unbind(); LLGLState::checkStates(); @@ -960,14 +966,6 @@ void display(BOOL rebuild, F32 zoom_factor, int subfield, BOOL for_snapshot) LLRenderTarget &rt = (gPipeline.sRenderDeferred ? gPipeline.mRT->deferredScreen : gPipeline.mRT->screen); rt.flush(); - - if (gFrameCount > 1 && !for_snapshot) - { //for some reason, ATI 4800 series will error out if you - //try to generate a shadow before the first frame is through - gPipeline.generateSunShadow(*LLViewerCamera::getInstance()); - } - - if (LLPipeline::sRenderDeferred) { gPipeline.renderDeferredLighting(); |