id.put(((Texture) texture.get(unit)).getTextureId());
id.put(texture.get(unit).getTextureId());
    public void delete(int unit) {        if (unit < 0 || unit >= texture.size() || texture.get(unit) == null)            return;        id.clear();        id.put(((Texture) texture.get(unit)).getTextureId());        id.rewind();        ((Texture) texture.get(unit)).setTextureId(0);        idCache[unit] = 0;        GL11.glDeleteTextures(id);    }