summaryrefslogtreecommitdiff
path: root/indra/newview/llviewerdisplay.cpp
diff options
context:
space:
mode:
authorJonathan "Geenz" Goodman <geenz@lindenlab.com>2024-11-25 20:56:03 -0500
committerGitHub <noreply@github.com>2024-11-25 20:56:03 -0500
commitd65fb7cec8ce36ce7f6ff082f8d04bdd8bc0208c (patch)
tree0005e8ec095fb31dcd4f8b079af585e3333c365f /indra/newview/llviewerdisplay.cpp
parent7ef6e8fce763eb529ed160ea4ff11e6125e32ed5 (diff)
Drop emissive on old Intel GPUs (#3110)
* #3103 Add the ability to disable the emissive buffer for older GPUs with low memory bandwidth. * #3135 Add a "vintage" mode for slower GPUs * #2719 Fix for skies being overbrightened * #2632 Do not apply tonemapping on legacy skies
Diffstat (limited to 'indra/newview/llviewerdisplay.cpp')
-rw-r--r--indra/newview/llviewerdisplay.cpp25
1 files changed, 6 insertions, 19 deletions
diff --git a/indra/newview/llviewerdisplay.cpp b/indra/newview/llviewerdisplay.cpp
index 6b90fea707..32019f860d 100644
--- a/indra/newview/llviewerdisplay.cpp
+++ b/indra/newview/llviewerdisplay.cpp
@@ -957,30 +957,17 @@ void display(bool rebuild, F32 zoom_factor, int subfield, bool for_snapshot)
gGL.setColorMask(true, true);
- if (LLPipeline::sRenderDeferred)
+ gPipeline.mRT->deferredScreen.bindTarget();
+ if (gUseWireframe)
{
- gPipeline.mRT->deferredScreen.bindTarget();
- if (gUseWireframe)
- {
- F32 g = 0.5f;
- glClearColor(g, g, g, 1.f);
- }
- else
- {
- glClearColor(1, 0, 1, 1);
- }
- gPipeline.mRT->deferredScreen.clear();
+ F32 g = 0.5f;
+ glClearColor(g, g, g, 1.f);
}
else
{
- gPipeline.mRT->screen.bindTarget();
- if (LLPipeline::sUnderWaterRender && !gPipeline.canUseWindLightShaders())
- {
- const LLColor4 &col = LLEnvironment::instance().getCurrentWater()->getWaterFogColor();
- glClearColor(col.mV[0], col.mV[1], col.mV[2], 0.f);
- }
- gPipeline.mRT->screen.clear();
+ glClearColor(1, 0, 1, 1);
}
+ gPipeline.mRT->deferredScreen.clear();
gGL.setColorMask(true, false);