mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-26 02:42: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 (
|
const (
|
||||||
BaseCountToPutOnAtlas = baseCountToPutOnAtlas
|
BaseCountToPutOnAtlas = baseCountToPutOnAtlas
|
||||||
|
PaddingSize = paddingSize
|
||||||
)
|
)
|
||||||
|
|
||||||
func PutImagesOnAtlasForTesting() error {
|
func PutImagesOnAtlasForTesting() error {
|
||||||
|
@ -522,7 +522,7 @@ func TestExtendWithBigImage(t *testing.T) {
|
|||||||
// Issue #1217
|
// Issue #1217
|
||||||
func TestMaxImageSize(t *testing.T) {
|
func TestMaxImageSize(t *testing.T) {
|
||||||
// This tests that a too-big image is allocated correctly.
|
// This tests that a too-big image is allocated correctly.
|
||||||
s := maxImageSizeForTesting
|
s := maxImageSizeForTesting - 2*PaddingSize
|
||||||
img := NewImage(s, s)
|
img := NewImage(s, s)
|
||||||
defer img.MarkDisposed()
|
defer img.MarkDisposed()
|
||||||
img.ReplacePixels(make([]byte, 4*s*s))
|
img.ReplacePixels(make([]byte, 4*s*s))
|
||||||
|
Loading…
Reference in New Issue
Block a user