summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorBrad Linden <brad@lindenlab.com>2023-01-10 14:43:12 -0800
committerBrad Linden <brad@lindenlab.com>2023-01-10 14:43:12 -0800
commitd224fa0b62877368fb9bae210063850bd853f6b6 (patch)
tree2eada68c44985d6489cd1dfb87711ee27256017b /indra
parentafa6692efa9c744d6043438ba755c6119273b899 (diff)
Fix mac build for DRTVWR-559
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/pipeline.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp
index 5e585852f4..832c7b8b43 100644
--- a/indra/newview/pipeline.cpp
+++ b/indra/newview/pipeline.cpp
@@ -855,8 +855,6 @@ bool LLPipeline::allocateScreenBuffer(U32 resX, U32 resY, U32 samples)
S32 shadow_detail = RenderShadowDetail;
bool ssao = RenderDeferredSSAO;
- const U32 occlusion_divisor = 3;
-
//allocate deferred rendering color buffers
if (!mRT->deferredScreen.allocate(resX, resY, GL_RGBA, true, true, LLTexUnit::TT_TEXTURE, false, samples)) return false;
if (!addDeferredAttachments(mRT->deferredScreen)) return false;
@@ -2494,10 +2492,10 @@ void LLPipeline::downsampleDepthBuffer(LLRenderTarget& source, LLRenderTarget& d
if (scratch_space)
{
+#if 0 // TODO -- restore occlusion culling functionality
GLint bits = 0;
bits = GL_DEPTH_BUFFER_BIT;
-#if 0 // TODO -- restore occlusion culling functionality
- scratch_space->copyContents(source,
+ scratch_space->copyContents(source,
0, 0, source.getWidth(), source.getHeight(),
0, 0, scratch_space->getWidth(), scratch_space->getHeight(), bits, GL_NEAREST);
#endif