Showing the changes to libraries/render-utils/src/FramebufferCache.cpp (1 of 11 files). Show all
Unified · Split
| @@ -92,6 +92,7 @@ void FramebufferCache::createPrimaryFramebuffer() { · 91 unmodified lines | ||
| 92 | 92 | // _lightingTexture = gpu::TexturePointer(gpu::Texture::create2D(gpu::Element(gpu::VEC4, gpu::HALF, gpu::RGBA), width, height, defaultSampler)); |
| 93 | 93 | _lightingFramebuffer = gpu::FramebufferPointer(gpu::Framebuffer::create()); |
| 94 | 94 | _lightingFramebuffer->setRenderBuffer(0, _lightingTexture); |
| 95 | + _lightingFramebuffer->setDepthStencilBuffer(_primaryDepthTexture, depthFormat); | |
| 95 | 96 | } |
| 96 | 97 | |
| 97 | 98 | gpu::FramebufferPointer FramebufferCache::getPrimaryFramebufferDepthColor() { |