ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/hd/rhd_ogl.c
(Generate patch)

Comparing ray/src/hd/rhd_ogl.c (file contents):
Revision 3.3 by gwlarson, Mon Dec 21 11:42:38 1998 UTC vs.
Revision 3.4 by gwlarson, Mon Dec 21 15:10:13 1998 UTC

# Line 262 | Line 262 | char  *id;
262          XMapWindow(ourdisplay, gwind);
263          dev_input();                    /* sets size and view angles */
264          if (!odInit(DisplayWidth(ourdisplay,ourscreen) *
265 <                        DisplayHeight(ourdisplay,ourscreen) / 10))
265 >                        DisplayHeight(ourdisplay,ourscreen) / 4))
266                  error(SYSTEM, "insufficient memory for value storage");
267          odev.name = id;
268          odev.firstuse = 1;              /* can't recycle samples */
# Line 363 | Line 363 | char   *gfn, *pfn;
363          if (gfn == NULL) {
364                  gmEndGeom();
365                  gmEndPortal();
366 +                wipeclean();            /* new geometry, so redraw it */
367                  return;
368          }
369          if (access(gfn, R_OK) == 0)
# Line 463 | Line 464 | dev_flush()                    /* flush output as appropriate */
464                          gmDrawPortals(PORTRED, PORTGRN, PORTBLU, PORTALP);
465                  checkglerr("rendering base view");
466          }
467 <        if (mapped && viewsteady) {
468 <                if (isperspective) {            /* first time after steady */
468 < #ifdef STEREO
469 <                        pushright();
470 <                        popright();
471 < #endif
467 >        if (mapped && viewsteady)
468 >                if (isperspective > 0) {        /* first time after steady */
469                          if (ndrawn)
470                                  xferdepth();    /* transfer and clear depth */
471                          setglortho();           /* set orthographic view */
472 <                } else {
472 >                } else if (!isperspective) {
473   #ifdef STEREO
474                          pushright();
475                          odUpdate(1);            /* draw right eye */
# Line 480 | Line 477 | dev_flush()                    /* flush output as appropriate */
477   #endif
478                          odUpdate(0);            /* draw left eye */
479                  }
483        }
480          glFlush();                              /* flush OpenGL */
481          rayqleft = RAYQLEN;
482                                          /* flush X11 and return # pending */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines