error check

This commit is contained in:
Marcos Slomp
2026-05-26 07:53:01 -07:00
parent ea8cbc849f
commit 884415264b

View File

@@ -365,7 +365,7 @@ private:
constexpr int limit = 10;
for( int i = 0; i <= limit; i++ )
{
m_vkGetCalibratedTimestampsEXT( device, 2, spec, ts, &deviation );
if( m_vkGetCalibratedTimestampsEXT( device, 2, spec, ts, &deviation ) != VK_SUCCESS ) return;
if( deviation <= m_deviation ) break;
if( i == limit ) return;
}