28 |
|
#include "standard.h" |
29 |
|
#include "rhd_odraw.h" |
30 |
|
#include "rhdisp.h" |
31 |
+ |
#include "paths.h" |
32 |
|
#ifdef DOBJ |
33 |
|
#include "rhdobj.h" |
34 |
|
#endif |
82 |
|
|
83 |
|
struct driver odev; /* global device driver structure */ |
84 |
|
|
85 |
+ |
TMstruct *tmGlobal; /* global tone-mapping structure */ |
86 |
+ |
|
87 |
|
char odev_args[64]; /* command arguments */ |
88 |
|
|
89 |
|
static GLfloat *depthbuffer = NULL; /* depth buffer */ |
211 |
|
&myprims[BLU][CIEX],&myprims[BLU][CIEY], |
212 |
|
&myprims[WHT][CIEX],&myprims[WHT][CIEY]) >= 6) |
213 |
|
dpri = myprims; |
214 |
< |
if (tmInit(mytmflags(), dpri, gamval) == NULL) |
214 |
> |
tmGlobal = tmInit(mytmflags(), dpri, gamval); |
215 |
> |
if (tmGlobal == NULL) |
216 |
|
error(SYSTEM, "not enough memory in dev_open"); |
217 |
|
/* open window */ |
218 |
|
ourwinattr.background_pixel = ourblack; |
302 |
|
gwind = 0; |
303 |
|
XCloseDisplay(ourdisplay); |
304 |
|
ourdisplay = NULL; |
305 |
< |
tmDone(NULL); |
305 |
> |
tmDone(tmGlobal); |
306 |
|
odev.v.type = 0; |
307 |
|
odev.hres = odev.vres = 0; |
308 |
|
odev.ifd = -1; |