--- ray/src/hd/rhd_ogl.c 2005/07/24 19:53:08 3.28 +++ ray/src/hd/rhd_ogl.c 2006/06/07 17:52:04 3.30 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: rhd_ogl.c,v 3.28 2005/07/24 19:53:08 greg Exp $"; +static const char RCSid[] = "$Id: rhd_ogl.c,v 3.30 2006/06/07 17:52:04 schorsch Exp $"; #endif /* * OpenGL driver for holodeck display. @@ -324,6 +324,9 @@ dev_view( /* assign new driver view */ register VIEW *nv ) { +#ifdef STEREO + double d; +#endif if (nv->type != VT_PER || /* check view legality */ nv->horiz > 160. || nv->vert > 160.) { error(COMMAND, "illegal view type/angle"); @@ -765,7 +768,10 @@ moveview( /* move our view */ { VIEW nv; FVECT odir, v1, wip; - double d, d1; + double d; +#ifdef DOBJ + double d1; +#endif /* start with old view */ nv = odev.v; /* orient our motion */ @@ -821,7 +827,10 @@ getframe( /* get focus frame */ int startx = ebut->x, starty = ebut->y; int endx, endy, midx, midy; FVECT odir, v1; - double d, d1; + double d; +#ifdef DOBJ + double d1; +#endif /* get mouse drag */ XMaskEvent(ourdisplay, ButtonReleaseMask, levptr(XEvent)); endx = levptr(XButtonReleasedEvent)->x;