Dispose display framebuffer on remove

This commit is contained in:
Anuken
2021-08-02 08:53:50 -04:00
parent 41964cd130
commit a3d1dd91d9

View File

@@ -106,6 +106,15 @@ public class LogicDisplay extends Block{
}); });
Draw.blend(); Draw.blend();
} }
@Override
public void remove(){
super.remove();
if(buffer != null){
buffer.dispose();
buffer = null;
}
}
} }
static int unpackSign(int value){ static int unpackSign(int value){