mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-29 06:07:54 +07:00
Fixed dispose() causing crash
This commit is contained in:
@ -135,9 +135,11 @@ public class MinimapRenderer implements Disposable{
|
||||
|
||||
@Override
|
||||
public void dispose(){
|
||||
pixmap.dispose();
|
||||
texture.dispose();
|
||||
texture = null;
|
||||
pixmap = null;
|
||||
if(pixmap != null && texture != null){
|
||||
pixmap.dispose();
|
||||
texture.dispose();
|
||||
texture = null;
|
||||
pixmap = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user