From 9cce605cb2afda0d0cac34b1d34cfc5634458c73 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 15 Dec 2005 15:25:02 +0000 Subject: [PATCH] From Yefei He, fix to QUAD_STRIP stats. --- include/osgUtil/Statistics | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/osgUtil/Statistics b/include/osgUtil/Statistics index d689490ad..da77441e6 100644 --- a/include/osgUtil/Statistics +++ b/include/osgUtil/Statistics @@ -181,7 +181,7 @@ inline unsigned int Statistics::_calculate_primitives_number_by_mode(GLenum mode case GL_TRIANGLE_STRIP: case GL_TRIANGLE_FAN: return count - 2; case GL_QUADS: return count / 4; - case GL_QUAD_STRIP: return count - 3; + case GL_QUAD_STRIP: return count / 2 - 1; default: return 0; } }