internal/atlas: add an assertion

Updates #2586
This commit is contained in:
Hajime Hoshi 2023-03-02 18:24:18 +09:00
parent 2e971a7ef4
commit 7c10e48afd

View File

@ -359,6 +359,11 @@ func (i *Image) putOnSourceBackend(graphicsDriver graphicsdriver.Graphics) error
newI.moveTo(i)
i.usedAsSourceCount = 0
if !i.isOnSourceBackend() {
panic("atlas: i must be on a source backend but not")
}
return nil
}