this patch helps for the demo. but someone more familiar with radeon_vtxfmt should check if it really fixes all cases...
I think in case of GL_QUAD_STRIP we should check for 0, too. (and maybe for 1?)
--- radeon_vtxfmt.c_orig Fri Mar 21 17:22:23 2003 +++ radeon_vtxfmt.c Mon Mar 24 21:52:58 2003 @@ -312,6 +312,8 @@ return 2; } case GL_TRIANGLE_STRIP: + if (nr == 0) /* dont let verts go negative! */ + return 0; ovf = MIN2( nr-1, 2 ); for (i = 0 ; i < ovf ; i++) copy_vertex( rmesa, nr-ovf+i, tmp[i] );
best regards, Andreas
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Dri-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dri-devel