Skip to content

Commit fb62145

Browse files
committed
Small MonoDeviceApp fix and update examples
1 parent 6e13596 commit fb62145

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

include/nbl/application_templates/MonoDeviceApplication.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ class MonoDeviceApplication : public virtual MonoSystemMonoLoggerApplication
2424
virtual bool onAppTerminated() override
2525
{
2626
// break the circular references from queues tracking submit resources
27-
m_device->waitIdle();
27+
if (m_device)
28+
m_device->waitIdle();
2829
m_device = nullptr;
2930
m_api = nullptr;
3031
return base_t::onAppTerminated();

0 commit comments

Comments
 (0)