mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-02-09 09:24:43 +01:00
internal/atlas: refactoring: remove (probably) unnecessary logics
This commit is contained in:
parent
1e2a4cb4b1
commit
32f1436576
@ -279,10 +279,7 @@ func (i *Image) ensureIsolatedFromSource(backends []*backend) {
|
|||||||
Height: h,
|
Height: h,
|
||||||
}
|
}
|
||||||
|
|
||||||
origBackend := i.backend
|
|
||||||
newI.drawTriangles([graphics.ShaderImageCount]*Image{i}, vs, is, graphicsdriver.BlendCopy, dr, graphicsdriver.Region{}, [graphics.ShaderImageCount - 1][2]float32{}, NearestFilterShader, nil, false, true)
|
newI.drawTriangles([graphics.ShaderImageCount]*Image{i}, vs, is, graphicsdriver.BlendCopy, dr, graphicsdriver.Region{}, [graphics.ShaderImageCount - 1][2]float32{}, NearestFilterShader, nil, false, true)
|
||||||
delete(theSourceBackendsForOneFrame, origBackend)
|
|
||||||
|
|
||||||
newI.moveTo(i)
|
newI.moveTo(i)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -600,8 +597,6 @@ func (i *Image) dispose(markDisposed bool) {
|
|||||||
|
|
||||||
i.backend.restorable.Dispose()
|
i.backend.restorable.Dispose()
|
||||||
|
|
||||||
delete(theSourceBackendsForOneFrame, i.backend)
|
|
||||||
|
|
||||||
for idx, sh := range theBackends {
|
for idx, sh := range theBackends {
|
||||||
if sh == i.backend {
|
if sh == i.backend {
|
||||||
theBackends = append(theBackends[:idx], theBackends[idx+1:]...)
|
theBackends = append(theBackends[:idx], theBackends[idx+1:]...)
|
||||||
|
Loading…
Reference in New Issue
Block a user