Skip to content

Commit 55241a6

Browse files
make the recreateSwapchain public
1 parent 18af976 commit 55241a6

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

examples_tests

include/nbl/video/utilities/CSimpleResizeSurface.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -65,18 +65,6 @@ class CSimpleResizeSurface final : public ISimpleManagedSurface
6565
return ISimpleManagedSurface::present(imageIndex,waitSemaphores);
6666
}
6767

68-
protected:
69-
using ISimpleManagedSurface::ISimpleManagedSurface;
70-
71-
//
72-
inline void deinit_impl() override final
73-
{
74-
becomeIrrecoverable();
75-
}
76-
77-
//
78-
inline void becomeIrrecoverable() override {m_swapchainResources = nullptr;}
79-
8068
//
8169
inline bool recreateSwapchain()
8270
{
@@ -137,6 +125,18 @@ class CSimpleResizeSurface final : public ISimpleManagedSurface
137125
return false;
138126
}
139127

128+
protected:
129+
using ISimpleManagedSurface::ISimpleManagedSurface;
130+
131+
//
132+
inline void deinit_impl() override final
133+
{
134+
becomeIrrecoverable();
135+
}
136+
137+
//
138+
inline void becomeIrrecoverable() override { m_swapchainResources = nullptr; }
139+
140140
// gets called when OUT_OF_DATE upon an acquire
141141
inline uint8_t handleOutOfDate() override final
142142
{

0 commit comments

Comments
 (0)