Skip to content

Commit 0e2115d

Browse files
committed
initialize m_saveGeomPrefixPath when everything is ready
1 parent 10263b0 commit 0e2115d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

12_MeshLoaders/main.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ class MeshLoadersApp final : public MonoWindowApplication, public BuiltinResourc
1818
public:
1919
inline MeshLoadersApp(const path& _localInputCWD, const path& _localOutputCWD, const path& _sharedInputCWD, const path& _sharedOutputCWD)
2020
: IApplicationFramework(_localInputCWD, _localOutputCWD, _sharedInputCWD, _sharedOutputCWD),
21-
device_base_t({1280,720}, EF_D32_SFLOAT, _localInputCWD, _localOutputCWD, _sharedInputCWD, _sharedOutputCWD) {}
21+
device_base_t({ 1280,720 }, EF_D32_SFLOAT, _localInputCWD, _localOutputCWD, _sharedInputCWD, _sharedOutputCWD)
22+
{}
2223

2324
inline bool onAppInitialized(smart_refctd_ptr<ISystem>&& system) override
2425
{
@@ -30,6 +31,8 @@ class MeshLoadersApp final : public MonoWindowApplication, public BuiltinResourc
3031
if (!device_base_t::onAppInitialized(smart_refctd_ptr(system)))
3132
return false;
3233

34+
m_saveGeomPrefixPath = localOutputCWD / "saved";
35+
3336
// parse args
3437
argparse::ArgumentParser parser("12_meshloaders");
3538
parser.add_argument("--savemesh")
@@ -467,7 +470,7 @@ class MeshLoadersApp final : public MonoWindowApplication, public BuiltinResourc
467470

468471
bool m_saveGeom;
469472
std::optional<const std::string> m_specifiedGeomSavePath;
470-
const nbl::system::path m_saveGeomPrefixPath = localOutputCWD / "saved";
473+
nbl::system::path m_saveGeomPrefixPath;
471474
};
472475

473476
NBL_MAIN_FUNC(MeshLoadersApp)

0 commit comments

Comments
 (0)