Skip to content

Commit 7085043

Browse files
committed
Fix issue with old swapchain chain
1 parent 10f6cd9 commit 7085043

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

include/nbl/video/ISwapchain.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,10 @@ class NBL_API ISwapchain : public core::IReferenceCounted, public IBackendObject
7878

7979
inline ISwapchain(core::smart_refctd_ptr<const ILogicalDevice>&& dev, SCreationParams&& params, IGPUImage::SCreationParams&& imgCreationParams, uint8_t imageCount)
8080
: IBackendObject(std::move(dev)), m_params(std::move(params)), m_imageCount(imageCount), m_imgCreationParams(std::move(imgCreationParams))
81-
{}
81+
{
82+
// don't need to keep a reference to the old swapchain anymore
83+
m_params.oldSwapchain = nullptr;
84+
}
8285

8386
inline const auto& getCreationParameters() const
8487
{

0 commit comments

Comments
 (0)