Support null VkSubmitInfo on queue submit.

This commit is contained in:
Bill Hollings 2018-02-25 15:52:09 -05:00
parent 73ff9161e1
commit e67cf9c0f2

View File

@ -340,8 +340,8 @@ MVKQueueCommandBufferSubmission::MVKQueueCommandBufferSubmission(MVKDevice* devi
MVKCommandUse cmdBuffUse)
: MVKQueueSubmission(device,
queue,
pSubmit->waitSemaphoreCount,
pSubmit->pWaitSemaphores), _cmdBuffCountdown(this) {
(pSubmit ? pSubmit->waitSemaphoreCount : 0),
(pSubmit ? pSubmit->pWaitSemaphores : nullptr)), _cmdBuffCountdown(this) {
// pSubmit can be null if just tracking the fence alone
if (pSubmit) {