shareable: Bug fix: wrong source image rect in ensureNotShared

This commit is contained in:
Hajime Hoshi 2018-04-05 01:07:36 +09:00
parent 92e5bc31dc
commit 6680b4f8d5

View File

@ -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{