Skip to content

Commit 88762c5

Browse files
committed
add device lost debug break
1 parent 84450e6 commit 88762c5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/nbl/video/ILogicalDevice.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,11 @@ class NBL_API2 ILogicalDevice : public core::IReferenceCounted, public IDeviceMe
183183
for (const auto& queue : *m_queues)
184184
queue->cullResources(info.semaphore);
185185
}
186+
if (waitStatus == retval_t::DEVICE_LOST) {
187+
m_logger.log("Device lost [%s - %s:%p]", system::ILogger::ELL_ERROR, __FUNCTION__, __FILE__, __LINE__);
188+
_NBL_DEBUG_BREAK_IF(true);
189+
}
190+
186191
return waitStatus;
187192
}
188193
return retval_t::SUCCESS;

0 commit comments

Comments
 (0)