From dcc87948830eca661c1900e1dd03d23383bd4bb0 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 6 Aug 2023 15:25:55 +0900 Subject: [PATCH] Revert "internal/atlas: clarify the logic when to update usedAsDestination" This reverts commit 2c9f5d9dad09fecf4705e4b9bf437ffd2ffd8df1. Reason: test failures --- internal/atlas/image.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/atlas/image.go b/internal/atlas/image.go index 6f2f6cb96..430aed5f6 100644 --- a/internal/atlas/image.go +++ b/internal/atlas/image.go @@ -230,7 +230,6 @@ func (i *Image) paddingSize() int { func (i *Image) ensureIsolatedFromSource(backends []*backend) { i.resetUsedAsSourceCount() - imagesUsedAsDestination[i] = struct{}{} if i.backend == nil { // `theSourceBackendsForOneFrame` already includes `backends`. @@ -246,6 +245,8 @@ func (i *Image) ensureIsolatedFromSource(backends []*backend) { return } + imagesUsedAsDestination[i] = struct{}{} + // Check if i has the same backend as the given backends. var needsIsolation bool for _, b := range backends {