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

Comparing ray/src/hd/sm_ogl.c (file contents):
Revision 3.5 by gwlarson, Fri Sep 11 11:52:26 1998 UTC vs.
Revision 3.6 by gwlarson, Mon Sep 14 10:33:47 1998 UTC

# Line 65 | Line 65 | int *arg;
65      if(SM_IS_NTH_T_BASE(smMesh,t_id))
66          continue;
67      SM_SET_NTH_T_ACTIVE(smMesh,t_id);
68 <    /* FOR NOW:Also set the LRU clock bit: MAY WANT TO CHANGE: */      
68 >    /* NOTE:Also set the LRU clock bit: MAY WANT TO CHANGE: */      
69      SM_SET_NTH_T_LRU(smMesh,t_id);
70    }
71    return(TRUE);
# Line 581 | Line 581 | T_DEPTH *td;
581          continue;
582      }
583      tri = SM_NTH_TRI(sm,t_id);
584 + #ifdef DEBUG
585 +    if(i >= smNew_tri_cnt)
586 +    {
587 +      eputs("smDepth_sort_tris():More tris than reported by smNew_tri_cnt\n");
588 +      break;
589 +    }
590 + #endif
591      td[i].tri = t_id;
592      min_d = -1;
593      for(j=0;j < 3;j++)
# Line 643 | Line 650 | int clr;
650       smRender_bg_tri(sm,pop_list(&bglist),vp,d,clr);
651    glEnd();
652  
653 <  glEnable(GL_DEPTH_TEST);
653 >
654    glBegin(GL_TRIANGLES);
655    i=0;
656    while(td[i].tri != -1)
# Line 749 | Line 756 | smUpdate(view,qual)
756    {
757      smClean_notify = FALSE;
758      smNew_tri_cnt = 0;
759 +    smClear_flags(smMesh,T_NEW_FLAG);
760      qtCache_init(0);
761    }
762  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines