From 3c31efc79602a9645d7412f21d893dc927843fe7 Mon Sep 17 00:00:00 2001 From: Corentin Wallez Date: Mon, 13 Apr 2020 17:10:51 +0000 Subject: [PATCH] Metal: Fix MSAA workaround texture being leaked. Bug: chromium:1070195 Change-Id: Ifb319d567f820bb4d3e9354d24b404bdb9617661 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/19281 Reviewed-by: Austin Eng Commit-Queue: Corentin Wallez --- src/dawn_native/metal/CommandBufferMTL.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dawn_native/metal/CommandBufferMTL.mm b/src/dawn_native/metal/CommandBufferMTL.mm index 67ec57cc7e..fb42a3ab1a 100644 --- a/src/dawn_native/metal/CommandBufferMTL.mm +++ b/src/dawn_native/metal/CommandBufferMTL.mm @@ -990,6 +990,8 @@ namespace dawn_native { namespace metal { CopyIntoTrueResolveTarget(commandContext, trueResolveTextures[i], trueResolveLevels[i], trueResolveSlices[i], temporaryResolveTextures[i], width, height); + [temporaryResolveTextures[i] release]; + temporaryResolveTextures[i] = nil; } return; }