mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
internal/atlas: bug fix: compile error
This commit is contained in:
parent
2855095ac9
commit
7c459c152b
@ -59,4 +59,4 @@ func (i *Image) EnsureIsolatedForTesting() {
|
|||||||
i.ensureIsolated()
|
i.ensureIsolated()
|
||||||
}
|
}
|
||||||
|
|
||||||
var ResolveDeferredForTesting = resolveDeferred
|
var FlushDeferredForTesting = flushDeferred
|
||||||
|
@ -624,7 +624,7 @@ func TestDisposedAndReputOnAtlas(t *testing.T) {
|
|||||||
src.MarkDisposed()
|
src.MarkDisposed()
|
||||||
|
|
||||||
// Force to dispose the image.
|
// Force to dispose the image.
|
||||||
atlas.ResolveDeferredForTesting()
|
atlas.FlushDeferredForTesting()
|
||||||
|
|
||||||
// Confirm that PutImagesOnAtlasForTesting doesn't panic.
|
// Confirm that PutImagesOnAtlasForTesting doesn't panic.
|
||||||
if err := atlas.PutImagesOnAtlasForTesting(ui.GraphicsDriverForTesting()); err != nil {
|
if err := atlas.PutImagesOnAtlasForTesting(ui.GraphicsDriverForTesting()); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user