286 |
|
#endif |
287 |
|
if (outfile != NULL) |
288 |
|
openheader(); |
289 |
– |
#if defined(_WIN32) || defined(_WIN64) |
289 |
|
SET_FILE_BINARY(stdout); |
290 |
|
if (octname == NULL) |
291 |
|
SET_FILE_BINARY(stdin); |
293 |
– |
#endif |
292 |
|
readoct(octname, loadflags, &thescene, NULL); |
293 |
|
nsceneobjs = nobjects; |
294 |
|
|
303 |
|
|
304 |
|
setambient(); /* initialize ambient calculation */ |
305 |
|
|
306 |
+ |
fflush(stdout); /* in case we're duplicating header */ |
307 |
+ |
|
308 |
|
#ifdef PERSIST |
309 |
|
if (persist) { |
310 |
– |
fflush(stdout); |
310 |
|
if (outfile == NULL) { /* reconnect stdout */ |
311 |
|
dup2(duped1, fileno(stdout)); |
312 |
|
close(duped1); |