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:
parent
cce393e0d4
commit
c71cbf7721
|
@ -152,7 +152,6 @@ namespace backend { namespace metal {
|
||||||
id<MTLCommandBuffer> Device::GetPendingCommandBuffer() {
|
id<MTLCommandBuffer> Device::GetPendingCommandBuffer() {
|
||||||
if (mPendingCommands == nil) {
|
if (mPendingCommands == nil) {
|
||||||
mPendingCommands = [mCommandQueue commandBuffer];
|
mPendingCommands = [mCommandQueue commandBuffer];
|
||||||
[mPendingCommands retain];
|
|
||||||
}
|
}
|
||||||
return mPendingCommands;
|
return mPendingCommands;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue