mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-26 10:42:42 +01:00
shareable: Bug fix: wrong source image rect in ensureNotShared
This commit is contained in:
parent
92e5bc31dc
commit
6680b4f8d5
@ -94,7 +94,7 @@ func (s *Image) ensureNotShared() {
|
||||
|
||||
x, y, w, h := s.region()
|
||||
newImg := restorable.NewImage(w, h, false)
|
||||
newImg.DrawImage(s.backend.restorable, x, y, w, h, nil, nil, opengl.CompositeModeCopy, graphics.FilterNearest)
|
||||
newImg.DrawImage(s.backend.restorable, x, y, x+w, y+h, nil, nil, opengl.CompositeModeCopy, graphics.FilterNearest)
|
||||
|
||||
s.dispose()
|
||||
s.backend = &backend{
|
||||
|
Loading…
Reference in New Issue
Block a user