Skip to content

Commit dedfb20

Browse files
committed
Fix Example 10
1 parent d4953bf commit dedfb20

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

examples_tests/10.AllocatorTest/main.cpp

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -290,26 +290,18 @@ void AllocatorHandler<core::LinearAddressAllocator<uint32_t>>::randFreeAllocated
290290
}
291291
}
292292

293-
class AllocatorTestSampleApp : public ApplicationBase
293+
class AllocatorTestSampleApp : public NonGraphicalApplicationBase
294294
{
295295
core::smart_refctd_ptr<nbl::system::ISystem> system;
296296

297297
public:
298-
void setWindow(core::smart_refctd_ptr<nbl::ui::IWindow>&& wnd) override
299-
{
300-
assert(false && "This example shouldn't have a window!");
301-
}
302-
nbl::ui::IWindow* getWindow() override
303-
{
304-
assert(false && "This example shouldn't have a window!");
305-
return nullptr;
306-
}
298+
307299
void setSystem(core::smart_refctd_ptr<nbl::system::ISystem>&& system) override
308300
{
309301
system = std::move(system);
310302
}
311303

312-
APP_CONSTRUCTOR(AllocatorTestSampleApp);
304+
NON_GRAPHICAL_APP_CONSTRUCTOR(AllocatorTestSampleApp);
313305

314306
void onAppInitialized_impl() override
315307
{

0 commit comments

Comments
 (0)