summaryrefslogtreecommitdiff
path: root/src/mesa/tnl_dd/t_dd_dmatmp.h
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2005-01-13 15:58:05 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2005-01-13 15:58:05 +0000
commitb1d322a1e76f27a22b4c876ef96655728f4de692 (patch)
tree6eeb27bb68ca083760548f50e1a7f97775fbf4cd /src/mesa/tnl_dd/t_dd_dmatmp.h
parentc06f8cb9e55078b307caf35cb863943cbde45562 (diff)
Fix loop for quads-as-triangles.
Diffstat (limited to 'src/mesa/tnl_dd/t_dd_dmatmp.h')
-rw-r--r--src/mesa/tnl_dd/t_dd_dmatmp.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/tnl_dd/t_dd_dmatmp.h b/src/mesa/tnl_dd/t_dd_dmatmp.h
index 6549041051..d274ead2c2 100644
--- a/src/mesa/tnl_dd/t_dd_dmatmp.h
+++ b/src/mesa/tnl_dd/t_dd_dmatmp.h
@@ -623,7 +623,7 @@ static void TAG(render_quads_verts)( GLcontext *ctx,
INIT(GL_TRIANGLES);
- for (j = start; j < count; j += 4) {
+ for (j = start; j < count-3; j += 4) {
void *tmp = ALLOC_VERTS( 6 );
/* Send v0, v1, v3
*/
@@ -1236,7 +1236,7 @@ static GLboolean TAG(validate_render)( GLcontext *ctx,
ok = (GLint) count < GET_SUBSEQUENT_VB_MAX_ELTS();
}
else {
- ok = HAVE_TRIANGLES; /* for gears... */
+ ok = HAVE_TRIANGLES; /* flatshading is ok. */
}
break;
default: