55 |
|
FVECT center; /* orig. object center */ |
56 |
|
FLOAT radius; /* orig. object radius */ |
57 |
|
int listid; /* GL display list identifier */ |
58 |
+ |
int nlists; /* number of lists allocated */ |
59 |
|
int rtp[3]; /* associated rtrace process */ |
60 |
|
DLIGHTS *ol; /* object lights */ |
61 |
|
FULLXF xfb; /* coordinate transform */ |
120 |
|
} |
121 |
|
dobjects = ohead.next; |
122 |
|
if (!foundlink) { |
123 |
< |
glDeleteLists(op->listid, 1); |
123 |
> |
glDeleteLists(op->listid, op->nlists); |
124 |
|
close_process(op->rtp); |
125 |
|
} |
126 |
|
while (op->xfac) |
578 |
|
/* load octree into display list */ |
579 |
|
dolights = 0; |
580 |
|
domats = 1; |
581 |
< |
op->listid = rgl_octlist(fpath, op->center, &op->radius); |
581 |
> |
op->listid = rgl_octlist(fpath, op->center, &op->radius, &op->nlists); |
582 |
|
/* start rtrace */ |
583 |
|
rtargv[RTARGC-1] = fpath; |
584 |
|
rtargv[RTARGC] = NULL; |