fix(Metal): Check for nil drawable

This commit is contained in:
Stuart Carnie 2018-07-06 23:37:15 -07:00
parent dc161a1cb3
commit 01df2c5e88

View File

@ -280,7 +280,11 @@
dispatch_semaphore_signal(inflight);
}];
[_commandBuffer presentDrawable:self.nextDrawable];
if (self.nextDrawable)
{
[_commandBuffer presentDrawable:self.nextDrawable];
}
[_commandBuffer commit];
_commandBuffer = nil;