shareable: Bug fix: Unlock after filling

Fixes #820
This commit is contained in:
Hajime Hoshi 2019-02-19 10:16:25 +09:00
parent ccacf015c2
commit 82178794c3

View File

@ -248,9 +248,10 @@ func (i *Image) Fill(r, g, b, a uint8) {
panic("shareable: the drawing target image must not be disposed (Fill)")
}
i.ensureNotShared()
backendsM.Unlock()
i.backend.restorable.Fill(r, g, b, a)
backendsM.Unlock()
}
func (i *Image) ReplacePixels(p []byte) {