mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
parent
2e971a7ef4
commit
7c10e48afd
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user