diff options
| author | Dave Parks <davep@lindenlab.com> | 2010-11-01 12:30:54 -0500 |
|---|---|---|
| committer | Dave Parks <davep@lindenlab.com> | 2010-11-01 12:30:54 -0500 |
| commit | e095665cca97247fd627339b8d299091b6dcf0cf (patch) | |
| tree | bed0ce4610dd31be2eb97ddf12d9b61b87a4c550 /indra/newview/llviewerdisplay.cpp | |
| parent | 434109c54e8b941d644fb0c63c2693681c17b2c9 (diff) | |
SH-281 Fix for snapshots showing interface all the time
Diffstat (limited to 'indra/newview/llviewerdisplay.cpp')
| -rw-r--r-- | indra/newview/llviewerdisplay.cpp | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/indra/newview/llviewerdisplay.cpp b/indra/newview/llviewerdisplay.cpp index dec9b8d48f..1d5caabebb 100644 --- a/indra/newview/llviewerdisplay.cpp +++ b/indra/newview/llviewerdisplay.cpp @@ -221,11 +221,24 @@ void display(BOOL rebuild, F32 zoom_factor, int subfield, BOOL for_snapshot) if (gResizeScreenTexture) { //skip render on frames where screen texture is resizing gGL.flush(); - glClear(GL_COLOR_BUFFER_BIT); - gViewerWindow->mWindow->swapBuffers(); + if (!for_snapshot) + { + glClear(GL_COLOR_BUFFER_BIT); + gViewerWindow->mWindow->swapBuffers(); + } + gResizeScreenTexture = FALSE; gPipeline.resizeScreenTexture(); - return; + + if (!for_snapshot) + { + return; + } + } + + if (LLPipeline::sRenderDeferred) + { //hack to make sky show up in deferred snapshots + for_snapshot = FALSE; } if (LLPipeline::sRenderFrameTest) |
