11 |
|
#include <GL/glx.h> |
12 |
|
#include <GL/glu.h> |
13 |
|
|
14 |
+ |
#include "platform.h" |
15 |
|
#include "rhd_qtree.h" |
16 |
|
#include "rhdriver.h" |
17 |
|
#include "rhdisp.h" |
61 |
|
|
62 |
|
struct driver odev; /* global device driver structure */ |
63 |
|
|
64 |
+ |
TMstruct *tmGlobal; /* global tone-mapping structure */ |
65 |
+ |
|
66 |
|
char odev_args[64]; /* command arguments */ |
67 |
|
|
68 |
|
static XEvent currentevent; /* current event */ |
144 |
|
&myprims[BLU][CIEX],&myprims[BLU][CIEY], |
145 |
|
&myprims[WHT][CIEX],&myprims[WHT][CIEY]) >= 6) |
146 |
|
dpri = myprims; |
147 |
< |
if (tmInit(mytmflags(), dpri, gamval) == NULL) |
147 |
> |
tmGlobal = tmInit(mytmflags(), dpri, gamval); |
148 |
> |
if (tmGlobal == NULL) |
149 |
|
error(SYSTEM, "not enough memory in dev_open"); |
150 |
|
/* open window */ |
151 |
|
ourwinattr.background_pixel = ourblack; |
214 |
|
XCloseDisplay(ourdisplay); |
215 |
|
ourdisplay = NULL; |
216 |
|
qtFreeLeaves(); |
217 |
< |
tmDone(NULL); |
217 |
> |
tmDone(tmGlobal); |
218 |
|
freecones(); |
219 |
|
odev.v.type = 0; |
220 |
|
odev.hres = odev.vres = 0; |