From 39ad9eb4b89ed2eec72f9db6b98a4353a6a77ae8 Mon Sep 17 00:00:00 2001 From: Matt Low Date: Thu, 22 Nov 2018 23:06:47 +0400 Subject: [PATCH] Unload assets with asset manager instead of disposing them --- core/src/com/me/brickbuster/state/FieldState.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/me/brickbuster/state/FieldState.java b/core/src/com/me/brickbuster/state/FieldState.java index cfa6bd1..c7fa08f 100644 --- a/core/src/com/me/brickbuster/state/FieldState.java +++ b/core/src/com/me/brickbuster/state/FieldState.java @@ -24,7 +24,7 @@ public abstract class FieldState extends State { @Override public void dispose() { super.dispose(); - textures.dispose(); + game.assets.unload("textures.atlas"); } }