History

Adrressing review issues

samcake committed 10 years ago

Commit 8cc65ea1 parent 09a70743 files · +2 −6Browse files

Showing the changes to libraries/render-utils/src/SurfaceGeometryPass.cpp (1 of 3 files). Show all

Unified · Split

libraries/render-utils/src/SurfaceGeometryPass.cpp+1−2
@@ -74,7 +74,6 @@ void LinearDepthFramebuffer::allocate() { · 73 unmodified lines
7474 // For Linear Depth:
7575 _linearDepthTexture = gpu::TexturePointer(gpu::Texture::create2D(gpu::Element(gpu::SCALAR, gpu::FLOAT, gpu::RGB), width, height,
7676 gpu::Sampler(gpu::Sampler::FILTER_MIN_MAG_LINEAR_MIP_POINT)));
77− // _linearDepthTexture->autoGenerateMips(5);
7877 _linearDepthFramebuffer = gpu::FramebufferPointer(gpu::Framebuffer::create());
7978 _linearDepthFramebuffer->setRenderBuffer(0, _linearDepthTexture);
8079 _linearDepthFramebuffer->setDepthStencilBuffer(_primaryDepthTexture, _primaryDepthTexture->getTexelFormat());
@@ -82,7 +81,7 @@ void LinearDepthFramebuffer::allocate() { · 1 unmodified line
8281 // For Downsampling:
8382 _halfLinearDepthTexture = gpu::TexturePointer(gpu::Texture::create2D(gpu::Element(gpu::SCALAR, gpu::FLOAT, gpu::RGB), _halfFrameSize.x, _halfFrameSize.y,
8483 gpu::Sampler(gpu::Sampler::FILTER_MIN_MAG_LINEAR_MIP_POINT)));
85− _halfLinearDepthTexture->autoGenerateMips(5);
84+ _halfLinearDepthTexture->autoGenerateMips(5);
8685
8786 _halfNormalTexture = gpu::TexturePointer(gpu::Texture::create2D(gpu::Element(gpu::VEC3, gpu::NUINT8, gpu::RGB), _halfFrameSize.x, _halfFrameSize.y,
8887 gpu::Sampler(gpu::Sampler::FILTER_MIN_MAG_LINEAR_MIP_POINT)));