From 2c62e64a9e3469de7ebf58a00526e070da2597dc Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Fri, 9 Mar 2018 02:13:44 +0900 Subject: [PATCH] Revert "internal/graphics: increase defaultViewportSize to 8192 (#538)" This reverts commit a60976f260f3d9257a87281a4860fac00d7dca8c Per #541. --- internal/graphics/framebuffer.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/internal/graphics/framebuffer.go b/internal/graphics/framebuffer.go index 320dcc2ee..f8999c55e 100644 --- a/internal/graphics/framebuffer.go +++ b/internal/graphics/framebuffer.go @@ -70,11 +70,8 @@ func newScreenFramebuffer(width, height int) *framebuffer { // defaultViewportSize is the default size (width or height) of viewport. // -// defaultViewportSize also represents the maximum size of a framebuffer -// and of an Image (it is used to declare MaxImageSize). -// -// For portability reasons it must be a power of two. -const defaultViewportSize = 8192 +// defaultViewportSize also represents the maximum size of a framebuffer. +const defaultViewportSize = 4096 // viewportSize returns the viewport size of the framebuffer. func (f *framebuffer) viewportSize() (int, int) {