Skip to content

Commit da4b8c2

Browse files
committed
Fixed HelloWorld Example
1 parent 4d057d5 commit da4b8c2

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

examples_tests/01.HelloWorld/main.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,14 @@ class DemoEventCallback : public ui::IWindow::IEventCallback
103103

104104
static core::smart_refctd_ptr<system::ISystem> createSystem()
105105
{
106-
core::smart_refctd_ptr<system::ISystemCaller> caller = nullptr;
106+
nbl::core::smart_refctd_ptr<system::ISystemCaller> caller = nullptr;
107107
#ifdef _NBL_PLATFORM_WINDOWS_
108-
caller = core::make_smart_refctd_ptr<nbl::system::CSystemCallerWin32>();
108+
caller = nbl::core::make_smart_refctd_ptr<nbl::system::CSystemCallerWin32>();
109109
#endif
110-
return make_smart_refctd_ptr<system::ISystem>(std::move(caller));
110+
#ifdef _NBL_PLATFORM_WINDOWS_
111+
return nbl::core::make_smart_refctd_ptr<nbl::system::CSystemWin32>(std::move(caller));
112+
#endif
113+
return nullptr;
111114
}
112115

113116
class HelloWorldSampleApp : public system::IApplicationFramework, public ui::IGraphicalApplicationFramework

0 commit comments

Comments
 (0)