mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
shareable: Remove println
This commit is contained in:
parent
9c408dce7c
commit
1f1847c259
@ -103,7 +103,6 @@ func (i *Image) ensureNotShared() {
|
||||
}
|
||||
|
||||
x, y, w, h := i.region()
|
||||
println(x, y, w, h)
|
||||
newImg := restorable.NewImage(w, h, false)
|
||||
newImg.DrawImage(i.backend.restorable, x, y, x+w, y+h, nil, nil, opengl.CompositeModeCopy, graphics.FilterNearest)
|
||||
|
||||
@ -248,6 +247,10 @@ func NewImage(width, height int) *Image {
|
||||
}
|
||||
|
||||
func (i *Image) allocate(shareable bool) {
|
||||
if i.allocated {
|
||||
panic("not reached")
|
||||
}
|
||||
|
||||
const (
|
||||
initSize = 1024
|
||||
maxSize = 4096
|
||||
|
Loading…
Reference in New Issue
Block a user