mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
internal/atlas: Bug fix: Disable a test resetting the backend
Closes #1756
This commit is contained in:
parent
440801c20c
commit
57a2db982b
@ -39,12 +39,6 @@ func ResetImageSizeForTesting() {
|
||||
maxSize = oldMaxSize
|
||||
}
|
||||
|
||||
func ResetBackendsForTesting() {
|
||||
backendsM.Lock()
|
||||
defer backendsM.Unlock()
|
||||
theBackends = nil
|
||||
}
|
||||
|
||||
func (i *Image) IsOnAtlasForTesting() bool {
|
||||
backendsM.Lock()
|
||||
defer backendsM.Unlock()
|
||||
|
@ -527,9 +527,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