From: James W. W. <jww...@us...> - 2007-10-15 02:14:48
|
Update of /cvsroot/quesa/quesa/Development/Source/Renderers/OpenGL In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv29159/quesa/Development/Source/Renderers/OpenGL Modified Files: QOGeometry.cpp Log Message: When in edge fill style, do not use triangle strips, as they cause extra edges to appear. Index: QOGeometry.cpp =================================================================== RCS file: /cvsroot/quesa/quesa/Development/Source/Renderers/OpenGL/QOGeometry.cpp,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** QOGeometry.cpp 9 Oct 2007 18:43:07 -0000 1.25 --- QOGeometry.cpp 15 Oct 2007 02:14:44 -0000 1.26 *************** *** 1008,1013 **** if (kQ3False == RenderCachedVBO( mGLContext, inTriMesh )) { ! GetCachedTriangleStrip( mRendererObject, inTriMesh, inGeomData, ! triangleStrip ); if (triangleStrip.empty()) --- 1008,1018 ---- if (kQ3False == RenderCachedVBO( mGLContext, inTriMesh )) { ! // In edge fill style, the degenerate triangles created by ! // MakeStrip draw bogus edges. ! if (mStyleState.mFill != kQ3FillStyleEdges) ! { ! GetCachedTriangleStrip( mRendererObject, inTriMesh, ! inGeomData, triangleStrip ); ! } if (triangleStrip.empty()) *************** *** 1033,1038 **** if (kQ3False == RenderCachedDisplayList( mGLContext, inTriMesh )) { ! GetCachedTriangleStrip( mRendererObject, inTriMesh, inGeomData, ! triangleStrip ); GLuint displayListID = glGenLists( 1 ); --- 1038,1048 ---- if (kQ3False == RenderCachedDisplayList( mGLContext, inTriMesh )) { ! // In edge fill style, the degenerate triangles created by ! // MakeStrip draw bogus edges. ! if (mStyleState.mFill != kQ3FillStyleEdges) ! { ! GetCachedTriangleStrip( mRendererObject, inTriMesh, ! inGeomData, triangleStrip ); ! } GLuint displayListID = glGenLists( 1 ); |