History

cleaning compilation warnings and tuning the FBX material mapping pass

samcake committed 10 years ago

Commit 307243d1 parent 2c584f75 files · +31 −15Browse files

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

Unified · Split

libraries/render-utils/src/FramebufferCache.cpp+2−4
@@ -43,13 +43,11 @@ void FramebufferCache::setFrameBufferSize(QSize frameBufferSize) { · 42 unmodified lines
4343 }
4444
4545 void FramebufferCache::createPrimaryFramebuffer() {
46− auto colorFormat = gpu::Element::COLOR_SRGBA_32;
47− auto linearFormat = gpu::Element::COLOR_RGBA_32;
46+ auto colorFormat = gpu::Element::COLOR_SRGBA_32;
4847 auto width = _frameBufferSize.width();
4948 auto height = _frameBufferSize.height();
5049
5150 auto defaultSampler = gpu::Sampler(gpu::Sampler::FILTER_MIN_MAG_POINT);
52− auto depthFormat = gpu::Element(gpu::SCALAR, gpu::UINT32, gpu::DEPTH_STENCIL); // Depth24_Stencil8 texel format
5351
5452 _selfieFramebuffer = gpu::FramebufferPointer(gpu::Framebuffer::create());
5553 auto tex = gpu::TexturePointer(gpu::Texture::create2D(colorFormat, width * 0.5, height * 0.5, defaultSampler));
@@ -74,7 +72,7 @@ void FramebufferCache::resizeAmbientOcclusionBuffers() { · 18 unmodified lines
7472 auto height = _frameBufferSize.height() >> _AOResolutionLevel;
7573 auto colorFormat = gpu::Element(gpu::VEC4, gpu::NUINT8, gpu::RGB);
7674 auto defaultSampler = gpu::Sampler(gpu::Sampler::FILTER_MIN_MAG_LINEAR);
77− auto depthFormat = gpu::Element(gpu::SCALAR, gpu::UINT32, gpu::DEPTH_STENCIL); // Depth24_Stencil8 texel format
75+ // auto depthFormat = gpu::Element(gpu::SCALAR, gpu::UINT32, gpu::DEPTH_STENCIL); // Depth24_Stencil8 texel format
7876
7977 _occlusionTexture = gpu::TexturePointer(gpu::Texture::create2D(colorFormat, width, height, defaultSampler));
8078 _occlusionFramebuffer = gpu::FramebufferPointer(gpu::Framebuffer::create());