Metal backend: do a Tick() on queue submit.

This commit is contained in:
Stephen White 2018-03-17 12:45:17 -04:00 committed by Corentin Wallez
parent 8c231b6990
commit d0771f8dd5

View File

@ -231,6 +231,7 @@ namespace backend { namespace metal {
void Queue::Submit(uint32_t numCommands, CommandBuffer* const* commands) {
Device* device = ToBackend(GetDevice());
device->Tick();
id<MTLCommandBuffer> commandBuffer = device->GetPendingCommandBuffer();
for (uint32_t i = 0; i < numCommands; ++i) {