Don't crash if there's nothing to draw

pull/41/head
jackun 4 years ago
parent d8783d3002
commit 27848bd253
No known key found for this signature in database
GPG Key ID: 119DB3F1D05A9ED3

@ -2242,8 +2242,10 @@ static VkResult overlay_QueuePresentKHR(
* wait on them as well, we can just wait on the overlay submission
* semaphore.
*/
present_info.pWaitSemaphores = &draw->semaphore;
present_info.waitSemaphoreCount = 1;
if (draw) {
present_info.pWaitSemaphores = &draw->semaphore;
present_info.waitSemaphoreCount = 1;
}
uint64_t ts0 = os_time_get();
VkResult chain_result = queue_data->device->vtable.QueuePresentKHR(queue, &present_info);

Loading…
Cancel
Save