Skip to content

Commit 1e47628

Browse files
make sure framebuffer and its attachment dies
1 parent 1affed6 commit 1e47628

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples_tests/22.RaytracedAO/Renderer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1204,6 +1204,8 @@ void Renderer::deinitScreenSizedResources()
12041204
m_denoiserOutput = {};
12051205
#endif
12061206

1207+
// unset the framebuffer (dangling smartpointer in state cache can prevent the framebuffer from being dropped until the next framebuffer set)
1208+
m_driver->setRenderTarget(nullptr,false);
12071209
if (m_visibilityBuffer)
12081210
{
12091211
m_driver->removeFrameBuffer(m_visibilityBuffer);

0 commit comments

Comments
 (0)