id.put(((Texture) texture.get(i)).getTextureId());
id.put(texture.get(i).getTextureId());
    public void deleteAll() {        for (int i = 0; i < texture.size(); i++) {            if (texture.get(i) == null)                continue;            id.clear();            id.put(((Texture) texture.get(i)).getTextureId());            id.rewind();            GL11.glDeleteTextures(id);            ((Texture) texture.get(i)).setTextureId(0);            idCache[i] = 0;        }    }