public int createDisplayList(Geometry g) {
public int createDisplayList(GeomBatch g) {
    public int createDisplayList(Geometry g) {        int listID = GL11.glGenLists(1);        generatingDisplayList = true;        applyStates(g.states);        GL11.glNewList(listID, GL11.GL_COMPILE);        if ((g.getType() & Spatial.TRIANGLEBATCH) != 0)            draw((TriangleBatch)g);        GL11.glEndList();        generatingDisplayList = false;                return listID;    }