mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 11:48:55 +01:00
Revert "internal/graphics: increase defaultViewportSize to 8192 (#538)"
This reverts commit a60976f260
Per #541.
This commit is contained in:
parent
bc8a96eda7
commit
2c62e64a9e
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user