Skip to content
Snippets Groups Projects
Commit 62085f9f authored by Ruslan Teliuk's avatar Ruslan Teliuk
Browse files

Merged lindenlab/viewer-cougar into default

parents 755b4a3a 72bd727c
No related branches found
No related tags found
No related merge requests found
...@@ -2654,9 +2654,12 @@ void LLPipeline::downsampleDepthBuffer(LLRenderTarget& source, LLRenderTarget& d ...@@ -2654,9 +2654,12 @@ void LLPipeline::downsampleDepthBuffer(LLRenderTarget& source, LLRenderTarget& d
if (scratch_space) if (scratch_space)
{ {
GLint bits = 0;
bits |= (source.hasStencil() && dest.hasStencil()) ? GL_STENCIL_BUFFER_BIT : 0;
bits |= GL_DEPTH_BUFFER_BIT;
scratch_space->copyContents(source, scratch_space->copyContents(source,
0, 0, source.getWidth(), source.getHeight(), 0, 0, source.getWidth(), source.getHeight(),
0, 0, scratch_space->getWidth(), scratch_space->getHeight(), GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT, GL_NEAREST); 0, 0, scratch_space->getWidth(), scratch_space->getHeight(), bits, GL_NEAREST);
} }
dest.bindTarget(); dest.bindTarget();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment