abort if queuepresent fails
This commit is contained in:
parent
3c3a5002d3
commit
51800db311
|
@ -231,6 +231,7 @@ namespace orange
|
|||
// TODO: Handle failure properly.
|
||||
if ((res = vkQueueSubmit(m_ctx.Queue(), 1, &submitInfo, m_inFlightFences[m_currentFrame])) != VK_SUCCESS) {
|
||||
log::err("Failed to submit work: %d", res);
|
||||
abort();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -247,6 +248,7 @@ namespace orange
|
|||
res = vkQueuePresentKHR(m_ctx.Queue(), &presentInfo);
|
||||
if (res != VK_SUCCESS && res != VK_SUBOPTIMAL_KHR) {
|
||||
log::err("Failed to submit present: %d", res);
|
||||
abort();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue