[artoolkit-commits] artoolkit/examples/twoView twoView.c,1.10,1.11
Optical marker tracking and overlay for augmented reality.
Brought to you by:
philip_lamb
From: Philip L. <phi...@us...> - 2005-09-22 19:35:52
|
Update of /cvsroot/artoolkit/artoolkit/examples/twoView In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16193/examples/twoView Modified Files: twoView.c Log Message: After fix in gsub_lite, need to explicitly enable depth testing. Index: twoView.c =================================================================== RCS file: /cvsroot/artoolkit/artoolkit/examples/twoView/twoView.c,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** twoView.c 22 Sep 2005 00:46:43 -0000 1.10 --- twoView.c 22 Sep 2005 19:35:40 -0000 1.11 *************** *** 481,484 **** --- 481,485 ---- // Select correct buffer for this context. glDrawBuffer(GL_BACK); + glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); // Clear the buffers for new frame. arglDispImage(gContextsActive[drawContextIndex].ARTImage, *************** *** 490,494 **** if (gContextsActive[drawContextIndex].patt_found) { - glClear(GL_DEPTH_BUFFER_BIT); // Clear the buffers for new frame. // Projection transformation. --- 491,494 ---- *************** *** 626,629 **** --- 626,630 ---- exit(-1); } + glEnable(GL_DEPTH_TEST); } arUtilTimerReset(); |