mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-12 20:18:59 +01:00
shareable: Refactoring
This commit is contained in:
parent
4a587f495d
commit
c4e98de804
@ -292,12 +292,8 @@ func TestVariousReplacePixelsMustNotCrash(t *testing.T) {
|
||||
const w, h = 256, 256
|
||||
img0 := NewImage(w, h)
|
||||
defer img0.Dispose()
|
||||
img1 := NewImage(w, h)
|
||||
defer img1.Dispose()
|
||||
img0.ReplacePixels(nil)
|
||||
img0.ReplacePixels(make([]byte, 4*w*h))
|
||||
img0.ReplacePixels(nil)
|
||||
img0.ReplacePixels(make([]byte, 4*w*h))
|
||||
img1.Dispose()
|
||||
img0.Dispose()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user