History

fix various crashes-upon-exits

Seth Alves committed 8 years ago

Commit dcebbad1 parent 0c9f0cb6 files · +36 −17Browse files

Showing the changes to interface/src/Application_render.cpp (1 of 6 files). Show all

Unified · Split

interface/src/Application_render.cpp+4−1
@@ -139,7 +139,10 @@ void Application::paintGL() { · 138 unmodified lines
139139 frame->frameIndex = _renderFrameCount;
140140 frame->framebuffer = finalFramebuffer;
141141 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+ }
143146 };
144147 // deliver final scene rendering commands to the display plugin
145148 {