INIT( GL_LINE_STRIP );
- if (flags & PRIM_BEGIN)
- j = 0;
- else
- j = 1;
+ j = (flags & PRIM_BEGIN) ? 0 : 1;
/* Ensure last vertex won't wrap buffers:
*/
nr = MIN2( currentsz, count - j );
if (j + nr >= count &&
- 0 < count - 1 &&
+ count > 1 &&
(flags & PRIM_END))
{
void *tmp;
}
}
- else if (1 < count && (flags & PRIM_END)) {
+ else if (count > 1 && (flags & PRIM_END)) {
void *tmp;
tmp = ALLOC_VERTS(2);
tmp = TAG(emit_verts)( ctx, start+1, 1, tmp );
FLUSH();
ELT_INIT( GL_LINE_STRIP );
- if (flags & PRIM_BEGIN)
- j = 0;
- else
- j = 1;
+ j = (flags & PRIM_BEGIN) ? 0 : 1;
currentsz = GET_CURRENT_VB_MAX_ELTS();
if (currentsz < 8) {
nr = MIN2( currentsz, count - j );
if (j + nr >= count &&
- 0 < count - 1 &&
+ count > 1 &&
(flags & PRIM_END))
{
void *tmp;
}
}
- else if (1 < count && (flags & PRIM_END)) {
+ else if (count > 1 && (flags & PRIM_END)) {
void *tmp;
tmp = ALLOC_ELTS(2);
tmp = TAG(emit_elts)( ctx, elts+start+1, 1, tmp );