From 1f1847c259d99ac4ab32fdc88126941e3c87f211 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 29 Apr 2018 19:10:36 +0900 Subject: [PATCH] shareable: Remove println --- internal/shareable/shareable.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/shareable/shareable.go b/internal/shareable/shareable.go index 13f7f4f8d..7aa8e85fd 100644 --- a/internal/shareable/shareable.go +++ b/internal/shareable/shareable.go @@ -103,7 +103,6 @@ func (i *Image) ensureNotShared() { } x, y, w, h := i.region() - println(x, y, w, h) newImg := restorable.NewImage(w, h, false) newImg.DrawImage(i.backend.restorable, x, y, x+w, y+h, nil, nil, opengl.CompositeModeCopy, graphics.FilterNearest) @@ -248,6 +247,10 @@ func NewImage(width, height int) *Image { } func (i *Image) allocate(shareable bool) { + if i.allocated { + panic("not reached") + } + const ( initSize = 1024 maxSize = 4096