Revert "internal/graphics: increase defaultViewportSize to 8192 (#538)"

This reverts commit a60976f260 Per #541.
This commit is contained in:
Hajime Hoshi 2018-03-09 02:13:44 +09:00
parent bc8a96eda7
commit 2c62e64a9e

View File

@ -70,11 +70,8 @@ func newScreenFramebuffer(width, height int) *framebuffer {
// defaultViewportSize is the default size (width or height) of viewport. // defaultViewportSize is the default size (width or height) of viewport.
// //
// defaultViewportSize also represents the maximum size of a framebuffer // defaultViewportSize also represents the maximum size of a framebuffer.
// and of an Image (it is used to declare MaxImageSize). const defaultViewportSize = 4096
//
// For portability reasons it must be a power of two.
const defaultViewportSize = 8192
// viewportSize returns the viewport size of the framebuffer. // viewportSize returns the viewport size of the framebuffer.
func (f *framebuffer) viewportSize() (int, int) { func (f *framebuffer) viewportSize() (int, int) {