From Yefei He, fix to QUAD_STRIP stats.

This commit is contained in:
Robert Osfield 2005-12-15 15:25:02 +00:00
parent ebc0580f12
commit 9cce605cb2

View File

@ -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;
}
}