diff options
| author | Callum Prentice <callum@lindenlab.com> | 2021-08-30 19:51:25 -0700 |
|---|---|---|
| committer | Callum Prentice <callum@lindenlab.com> | 2021-08-30 19:51:25 -0700 |
| commit | 3648447235137596b0f1ee48da1af998028d27c5 (patch) | |
| tree | 084a7ddb38d8a3ec73e9fb77d028c2113ef4da20 /indra/newview/llviewerwindow.cpp | |
| parent | a29b1960c66ce533f4b7277631f6aaf93c8b1b28 (diff) | |
SL-15918 Experimental feature to perform multiple render passes and reduce missing content - fixed
Diffstat (limited to 'indra/newview/llviewerwindow.cpp')
| -rw-r--r-- | indra/newview/llviewerwindow.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/indra/newview/llviewerwindow.cpp b/indra/newview/llviewerwindow.cpp index 81e19e9fe2..b67842d7a1 100644 --- a/indra/newview/llviewerwindow.cpp +++ b/indra/newview/llviewerwindow.cpp @@ -5160,7 +5160,7 @@ BOOL LLViewerWindow::rawSnapshot(LLImageRaw *raw, S32 image_width, S32 image_hei return ret; } -BOOL LLViewerWindow::simpleSnapshot(LLImageRaw* raw, S32 image_width, S32 image_height) +BOOL LLViewerWindow::simpleSnapshot(LLImageRaw* raw, S32 image_width, S32 image_height, const int num_render_passes) { gDisplaySwapBuffers = FALSE; @@ -5202,7 +5202,11 @@ BOOL LLViewerWindow::simpleSnapshot(LLImageRaw* raw, S32 image_width, S32 image_ const bool do_rebuild = true; const F32 zoom = 1.0; const bool for_snapshot = TRUE; - display(do_rebuild, zoom, subfield, for_snapshot); + + for (int i = 0; i < num_render_passes; ++i) + { + display(do_rebuild, zoom, subfield, for_snapshot); + } glReadPixels( 0, 0, |
