Showing the changes to interface/src/Application_render.cpp (1 of 6 files). Show all
Unified · Split
| @@ -139,7 +139,10 @@ void Application::paintGL() { · 138 unmodified lines | |||
| 139 | frame->frameIndex = _renderFrameCount; | 139 | frame->frameIndex = _renderFrameCount; |
| 140 | frame->framebuffer = finalFramebuffer; | 140 | frame->framebuffer = finalFramebuffer; |
| 141 | frame->framebufferRecycler = [](const gpu::FramebufferPointer& framebuffer) { | 141 | frame->framebufferRecycler = [](const gpu::FramebufferPointer& framebuffer) { |
| 142 | DependencyManager::get<FramebufferCache>()->releaseFramebuffer(framebuffer); | 142 | auto frameBufferCache = DependencyManager::get<FramebufferCache>(); |
| 143 | if (frameBufferCache) { | ||
| 144 | frameBufferCache->releaseFramebuffer(framebuffer); | ||
| 145 | } | ||
| 143 | }; | 146 | }; |
| 144 | // deliver final scene rendering commands to the display plugin | 147 | // deliver final scene rendering commands to the display plugin |
| 145 | { | 148 | { |