{
if (HAVE_POINTS) {
LOCAL_VARS;
- unsigned dmasz = GET_SUBSEQUENT_VB_MAX_VERTS();
+ const unsigned dmasz = GET_SUBSEQUENT_VB_MAX_VERTS();
unsigned currentsz;
GLuint j, nr;
GLuint flags)
{
LOCAL_VARS;
- unsigned dmasz = GET_SUBSEQUENT_VB_MAX_VERTS();
+ const unsigned dmasz = GET_SUBSEQUENT_VB_MAX_VERTS() & ~1;
unsigned currentsz;
GLuint j, nr;
count -= count & 1;
currentsz = GET_CURRENT_VB_MAX_VERTS();
currentsz -= currentsz & 1;
- dmasz -= dmasz & 1;
if (currentsz < 8)
currentsz = dmasz;
GLuint flags)
{
LOCAL_VARS;
- unsigned dmasz = GET_SUBSEQUENT_VB_MAX_VERTS();
+ const unsigned dmasz = GET_SUBSEQUENT_VB_MAX_VERTS();
unsigned currentsz;
GLuint j, nr;
GLuint flags)
{
LOCAL_VARS;
- unsigned dmasz = GET_SUBSEQUENT_VB_MAX_VERTS();
+ const unsigned dmasz = GET_SUBSEQUENT_VB_MAX_VERTS() - 1;
unsigned currentsz;
GLuint j, nr;
*/
currentsz = GET_CURRENT_VB_MAX_VERTS();
currentsz--;
- dmasz--;
if (currentsz < 8)
currentsz = dmasz;
GLuint flags)
{
LOCAL_VARS;
- unsigned dmasz = (GET_SUBSEQUENT_VB_MAX_VERTS() / 3) * 3;
+ const unsigned dmasz = (GET_SUBSEQUENT_VB_MAX_VERTS() / 3) * 3;
unsigned currentsz;
GLuint j, nr;
{
LOCAL_VARS;
GLuint j, nr;
- unsigned dmasz = GET_SUBSEQUENT_VB_MAX_VERTS();
+ const unsigned dmasz = GET_SUBSEQUENT_VB_MAX_VERTS() & ~1;
unsigned currentsz;
INIT(GL_TRIANGLE_STRIP);
/* From here on emit even numbers of tris when wrapping over buffers:
*/
- dmasz -= (dmasz & 1);
currentsz -= (currentsz & 1);
for (j = 0; j + 2 < count; j += nr - 2) {
{
LOCAL_VARS;
GLuint j, nr;
- unsigned dmasz = GET_SUBSEQUENT_VB_MAX_VERTS();
+ const unsigned dmasz = GET_SUBSEQUENT_VB_MAX_VERTS();
unsigned currentsz;
INIT(GL_TRIANGLE_FAN);
if (HAVE_POLYGONS) {
LOCAL_VARS;
GLuint j, nr;
- unsigned dmasz = GET_SUBSEQUENT_VB_MAX_VERTS();
+ const unsigned dmasz = GET_SUBSEQUENT_VB_MAX_VERTS();
unsigned currentsz;
INIT(GL_POLYGON);
return;
} else {
LOCAL_VARS;
- unsigned dmasz = GET_SUBSEQUENT_VB_MAX_VERTS();
+ const unsigned dmasz = GET_SUBSEQUENT_VB_MAX_VERTS() & ~1;
unsigned currentsz;
/* Emit smooth-shaded quadstrips as tristrips:
/* Emit whole number of quads in total, and in each buffer.
*/
- dmasz -= dmasz & 1;
currentsz = GET_CURRENT_VB_MAX_VERTS();
currentsz -= currentsz & 1;
count -= count & 1;