From: Braden M. <br...@us...> - 2007-01-22 22:58:39
|
Update of /cvsroot/openvrml/openvrml/src/libopenvrml-gl/openvrml/gl In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv29896/src/libopenvrml-gl/openvrml/gl Modified Files: Tag: OpenVRML-0_16-BRANCH viewer.cpp Log Message: Enabled #if 0'd code to put the background in a display list. So far, it seems harmless. Index: viewer.cpp =================================================================== RCS file: /cvsroot/openvrml/openvrml/src/libopenvrml-gl/openvrml/gl/viewer.cpp,v retrieving revision 1.43.2.11 retrieving revision 1.43.2.12 diff -C2 -d -r1.43.2.11 -r1.43.2.12 *** viewer.cpp 22 Jan 2007 04:32:12 -0000 1.43.2.11 --- viewer.cpp 22 Jan 2007 22:58:37 -0000 1.43.2.12 *************** *** 1192,1203 **** // Need to separate the geometry from the transformation so the // dlist doesn't have to get rebuilt for every mouse movement... - # if 0 // Don't bother with a dlist if we aren't drawing anything ! if (!this->select_mode ! && (!skyAngle.empty() || !groundAngle.empty() || pixels)) { glid = glGenLists(1); glNewList(glid, GL_COMPILE_AND_EXECUTE); } - # endif glClearColor(r, g, b, a); --- 1192,1207 ---- // Need to separate the geometry from the transformation so the // dlist doesn't have to get rebuilt for every mouse movement... // Don't bother with a dlist if we aren't drawing anything ! if (!this->select_mode && (!skyAngle.empty() ! || !groundAngle.empty() ! || !front.array().empty() ! || !back.array().empty() ! || !left.array().empty() ! || !right.array().empty() ! || !top.array().empty() ! || !bottom.array().empty())) { glid = glGenLists(1); glNewList(glid, GL_COMPILE_AND_EXECUTE); } glClearColor(r, g, b, a); |