From 09d473ea1bd7d87edf07995396cd67c271dd0f37 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Tue, 25 Jun 2019 23:41:36 +0900 Subject: [PATCH] restorable: Add comments --- internal/restorable/image.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/restorable/image.go b/internal/restorable/image.go index 2f35993d2..f924c1cef 100644 --- a/internal/restorable/image.go +++ b/internal/restorable/image.go @@ -193,6 +193,9 @@ func (i *Image) fill(r, g, b, a uint8) { // There are not 'drawTrianglesHistoryItem's for this image and emptyImage. // As emptyImage is a priority image, this is restored before other regular images are restored. + + // The rendering target size needs to be its 'internal' size instead of the exposed size to avoid glitches on + // mobile platforms (See the change 1e1f309a). dw, dh := i.internalSize() sw, sh := emptyImage.Size() vs := make([]float32, 4*graphics.VertexFloatNum)