mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 18:58:54 +01:00
internal/atlas: Bug fix: Disable a test resetting the backend
Closes #1756
This commit is contained in:
parent
1e062a4245
commit
7586f1ca5e
@ -40,12 +40,6 @@ func ResetImageSizeForTesting() {
|
||||
maxSize = oldMaxSize
|
||||
}
|
||||
|
||||
func ResetBackendsForTesting() {
|
||||
backendsM.Lock()
|
||||
defer backendsM.Unlock()
|
||||
theBackends = nil
|
||||
}
|
||||
|
||||
func (i *Image) IsOnAtlasForTesting() bool {
|
||||
backendsM.Lock()
|
||||
defer backendsM.Unlock()
|
||||
|
@ -528,9 +528,10 @@ func TestMaxImageSize(t *testing.T) {
|
||||
img.ReplacePixels(make([]byte, 4*s*s))
|
||||
}
|
||||
|
||||
// Issue #1217
|
||||
func TestMinImageSize(t *testing.T) {
|
||||
ResetBackendsForTesting()
|
||||
// Issue #1217 (disabled)
|
||||
func Disable_TestMinImageSize(t *testing.T) {
|
||||
// The backend cannot be reset. If this is necessary, sync the state with the images (#1756).
|
||||
// ResetBackendsForTesting()
|
||||
|
||||
// This tests that extending a backend works correctly.
|
||||
// Though the image size is minimum size of the backend, extending the backend happens due to the paddings.
|
||||
|
Loading…
Reference in New Issue
Block a user