* tristrips, lineloops to linestrips), or to indexed vertices.
*/
-#if !defined(HAVE_TRIANGLES) || !HAVE_LINES || !HAVE_LINE_STRIPS
+#if !HAVE_TRIANGLES || !HAVE_LINES || !HAVE_LINE_STRIPS
#error "must have lines, line strips, and triangles to use render template"
#endif
RELEASE_ELT_VERTS();
}
- else if (HAVE_TRIANGLES) {
+ else {
/* Hardware doesn't have a quad primitive type -- try to
* simulate it using triangle primitive. This is a win for
* gears, but is it useful in the broader world?
(void) tmp;
}
}
- else {
- /* Vertices won't fit in a single buffer, should never happen.
- */
- fprintf(stderr, "%s - cannot draw primitive\n", __func__);
- return;
- }
}
static void TAG(render_noop)( struct gl_context *ctx,
ok = !ctx->Line.StippleFlag;
break;
case GL_TRIANGLES:
- ok = HAVE_TRIANGLES;
+ ok = GL_TRUE;
break;
case GL_TRIANGLE_STRIP:
ok = HAVE_TRI_STRIPS;
ok = (GLint) count < GET_SUBSEQUENT_VB_MAX_ELTS();
}
else {
- ok = HAVE_TRIANGLES; /* flatshading is ok. */
+ ok = GL_TRUE; /* flatshading is ok. */
}
break;
default: