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 <enga@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
Corentin Wallez 2020-04-13 17:10:51 +00:00 committed by Commit Bot service account
parent 0543f78881
commit 3c31efc796
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}