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