History

On mac cannot get ther erendering to properly display the overlay if the rear view mirror is active on resize

samcake committed 11 years ago

Commit 52ac5b31 parent cb375e88 files · +48 −17Browse files

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

Unified · Split

libraries/render-utils/src/FramebufferCache.cpp+5−1
@@ -70,6 +70,10 @@ void FramebufferCache::createPrimaryFramebuffer() { · 69 unmodified lines
7070 _primaryFramebufferFull->setDepthStencilBuffer(_primaryDepthTexture, depthFormat);
7171
7272 _primaryFramebufferDepthColor->setDepthStencilBuffer(_primaryDepthTexture, depthFormat);
73+
74+ _selfieFramebuffer = gpu::FramebufferPointer(gpu::Framebuffer::create());
75+ auto tex = gpu::TexturePointer(gpu::Texture::create2D(colorFormat, width * 0.5, height * 0.5, defaultSampler));
76+ _selfieFramebuffer->setRenderBuffer(0, tex);
7377 }
7478
7579 gpu::FramebufferPointer FramebufferCache::getPrimaryFramebuffer() {
@@ -140,7 +144,7 @@ gpu::FramebufferPointer FramebufferCache::getShadowFramebuffer() { · 64 unmodified lines
140144
141145 gpu::FramebufferPointer FramebufferCache::getSelfieFramebuffer() {
142146 if (!_selfieFramebuffer) {
143− _selfieFramebuffer = gpu::FramebufferPointer(gpu::Framebuffer::create(gpu::Element::COLOR_RGBA_32, _frameBufferSize.width(), _frameBufferSize.height()));
147+ createPrimaryFramebuffer();
144148 }
145149 return _selfieFramebuffer;
146150 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t