--- libgender/view.C 2004/10/06 19:45:29 1.33 +++ libgender/view.C 2004/10/09 02:08:29 1.36 @@ -16,7 +16,7 @@ { } -bool view::may_draw (entity_base *e) +bool view::may_draw (const entity *e) { if (drawn.find (e) != drawn.end ()) return false; @@ -92,6 +92,7 @@ for (vector::iterator i = farlist.begin (); i != farlist.end (); ++i) ; + farlist.clear (); // check occlusion queries here @@ -143,16 +144,15 @@ drawn.clear (); - if (mode == view::LIGHTED) + if (mode == view::DEPTH || 1) { glEnable (GL_DEPTH_CLAMP_NV); glDepthFunc (GL_LESS); + if (1) glDepthFunc (GL_LEQUAL); glEnable (GL_COLOR_MATERIAL); glDisable (GL_LIGHTING); -#if 1 cgGLDisableProfile (vsh_profile); cgGLDisableProfile (fsh_profile); -#endif glShadeModel (GL_FLAT); #if 0