for (int i = 0; i < numTexUnits; i++) {
for (int i = 0; i < texture.size(); i++) {
    public void deleteAll() {        for (int i = 0; i < numTexUnits; 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);        }        resetTextureIDs();    }