mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-11 19:48:54 +01:00
shareable: Fix semantically incorrect function usage
In this case, the size equals to the internal size, so this is not a bug fix.
This commit is contained in:
parent
fd250c8d8c
commit
a06a2b65c1
@ -129,7 +129,7 @@ func (i *Image) ensureNotShared() {
|
||||
|
||||
x, y, w, h := i.region()
|
||||
newImg := restorable.NewImage(w, h)
|
||||
vw, vh := i.backend.restorable.Size()
|
||||
vw, vh := i.backend.restorable.InternalSize()
|
||||
vs := graphics.QuadVertices(vw, vh, x, y, x+w, y+h, 1, 0, 0, 1, 0, 0, 1, 1, 1, 1)
|
||||
is := graphics.QuadIndices()
|
||||
newImg.DrawImage(i.backend.restorable, vs, is, nil, graphics.CompositeModeCopy, graphics.FilterNearest, graphics.AddressClampToZero)
|
||||
|
Loading…
Reference in New Issue
Block a user