Fix leak in Metal's Device::GetPendingCommandBuffer().

GetPendingCommandBuffer() doesn't need to retain the metal
command buffer; it's created with a ref.
This commit is contained in:
Stephen White 2018-04-27 13:19:03 -04:00 committed by Corentin Wallez
parent cce393e0d4
commit c71cbf7721
1 changed files with 0 additions and 1 deletions

View File

@ -152,7 +152,6 @@ namespace backend { namespace metal {
id<MTLCommandBuffer> Device::GetPendingCommandBuffer() {
if (mPendingCommands == nil) {
mPendingCommands = [mCommandQueue commandBuffer];
[mPendingCommands retain];
}
return mPendingCommands;
}