From f6aca1044e2b8ab6d8bad9552355d92a91ca4991 Mon Sep 17 00:00:00 2001 From: Cosmic Linden Date: Fri, 27 Sep 2024 12:20:52 -0700 Subject: secondlife/viewer#2638: Do clear smaa buffer due to discard --- indra/newview/pipeline.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'indra') 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); -- cgit v1.2.3