Showing the changes to libraries/render-utils/src/FramebufferCache.cpp (1 of 5 files). Show all
Unified · Split
| @@ -71,7 +71,7 @@ void FramebufferCache::createPrimaryFramebuffer() { · 70 unmodified lines | |||
| 71 | auto depthFormat = gpu::Element(gpu::SCALAR, gpu::FLOAT, gpu::DEPTH); | 71 | auto depthFormat = gpu::Element(gpu::SCALAR, gpu::FLOAT, gpu::DEPTH); |
| 72 | _primaryDepthTexture = gpu::TexturePointer(gpu::Texture::create2D(depthFormat, width, height, defaultSampler)); | 72 | _primaryDepthTexture = gpu::TexturePointer(gpu::Texture::create2D(depthFormat, width, height, defaultSampler)); |
| 73 | 73 | ||
| 74 | auto stencilFormat = gpu::Element(gpu::VEC2, gpu::UINT32, gpu::DEPTH_STENCIL); | 74 | auto stencilFormat = gpu::Element(gpu::SCALAR, gpu::UINT32, gpu::DEPTH_STENCIL); // Depth24_Stencil8 texel format |
| 75 | _primaryStencilTexture = gpu::TexturePointer(gpu::Texture::create2D(stencilFormat, width, height, defaultSampler)); | 75 | _primaryStencilTexture = gpu::TexturePointer(gpu::Texture::create2D(stencilFormat, width, height, defaultSampler)); |
| 76 | 76 | ||
| 77 | _primaryFramebufferFull->setDepthStencilBuffer(_primaryDepthTexture, depthFormat); | 77 | _primaryFramebufferFull->setDepthStencilBuffer(_primaryDepthTexture, depthFormat); |