buffered: Bug fix: reset the flag when invalidating the pending pixels

Updates #977
This commit is contained in:
Hajime Hoshi 2019-11-09 05:54:24 +09:00
parent ec59e9b9ae
commit 8d12446dbe

View File

@ -85,6 +85,7 @@ func NewScreenFramebufferImage(width, height int) *Image {
func (i *Image) invalidatePendingPixels() { func (i *Image) invalidatePendingPixels() {
i.pixels = nil i.pixels = nil
i.needsToResolvePixels = false
} }
func (i *Image) resolvePendingPixels(keepPendingPixels bool) { func (i *Image) resolvePendingPixels(keepPendingPixels bool) {