mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-24 18:02:02 +01:00
internal/atlas: Bug fix: Fix test
This commit is contained in:
parent
8a6302f9dc
commit
1e062a4245
@ -16,6 +16,7 @@ package atlas
|
||||
|
||||
const (
|
||||
BaseCountToPutOnAtlas = baseCountToPutOnAtlas
|
||||
PaddingSize = paddingSize
|
||||
)
|
||||
|
||||
func PutImagesOnAtlasForTesting() error {
|
||||
|
@ -522,7 +522,7 @@ func TestExtendWithBigImage(t *testing.T) {
|
||||
// Issue #1217
|
||||
func TestMaxImageSize(t *testing.T) {
|
||||
// This tests that a too-big image is allocated correctly.
|
||||
s := maxImageSizeForTesting
|
||||
s := maxImageSizeForTesting - 2*PaddingSize
|
||||
img := NewImage(s, s)
|
||||
defer img.MarkDisposed()
|
||||
img.ReplacePixels(make([]byte, 4*s*s))
|
||||
|
Loading…
Reference in New Issue
Block a user