diff options
author | Cosmic Linden <cosmic@lindenlab.com> | 2024-09-27 12:20:52 -0700 |
---|---|---|
committer | Cosmic Linden <cosmic@lindenlab.com> | 2024-09-27 12:20:52 -0700 |
commit | f6aca1044e2b8ab6d8bad9552355d92a91ca4991 (patch) | |
tree | bc9fa33d051199850e9bd6da7e687e4f7c63d0ca /indra | |
parent | 6ebd6494a75d9b3d34e45655d79d0027fbba3898 (diff) |
secondlife/viewer#2638: Do clear smaa buffer due to discard
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/pipeline.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp index 19868d2eef..207afd7a5c 100644 --- a/indra/newview/pipeline.cpp +++ b/indra/newview/pipeline.cpp @@ -7435,7 +7435,8 @@ void LLPipeline::generateSMAABuffers(LLRenderTarget* src) LLGLSLShader& edge_shader = gSMAAEdgeDetectProgram[fsaa_quality]; dest.bindTarget(); - dest.invalidate(GL_COLOR_BUFFER_BIT); + // SMAA utilizes discard, so the background color matters + dest.clear(GL_COLOR_BUFFER_BIT); edge_shader.bind(); edge_shader.uniform4fv(sSmaaRTMetrics, 1, rt_metrics); |