I've commited this change to CVS. Thanks!
-Brian
[EMAIL PROTECTED] wrote:
>
> This came through on the g200 list; thought I'd pass it on since I
> don't see it on the mesa list.
>
> -ralph
>
> ------ Forwarded message ------
> From: Andy Sloane <[EMAIL PROTECTED]>
> Subject: [g200-dev]glDrawElements crash/patch
> Date: Sat, 3 Jul 1999 22:53:05 -0500
> To: [EMAIL PROTECTED]
>
> I was repeatedly seeing a crash in glDrawElements (which, over the GLX
> protocol, is the same as glDrawArray). My coworker and I did some
> debugging and found that the texture coordinates GLvertex4f structure had a
> zero size and the resulting call to Transform caused a crash. The
> following simple fix (to the mesa code tree) prevents this, but doesn't
> entirely solve the problem:
>
> Index: varray.c
> ===================================================================
> RCS file: /cvs/mesa3d/src/varray.c,v
> retrieving revision 3.30
> diff -u -r3.30 varray.c
> --- varray.c 1999/06/01 10:42:29 3.30
> +++ varray.c 1999/07/04 03:48:44
> @@ -561,6 +561,7 @@
> VSrc.TexCoord[i] = &tc[i];
> tc[i].data = (GLfloat (*)[4]) ctx->Array.TexCoord[i].Ptr;
> tc[i].stride = ctx->Array.TexCoord[i].StrideB;
> + tc[i].size = ctx->Array.TexCoord[i].Size;
> tc[i].flags = 0;
> update |= flag;
> } else {
>
> If an array of vertices has any of the polygons clipped, the whole thing
> fails to be rendered. I've only tested this with our game which I'm afraid
> I can't give out at this point. :)
>
> -Andy.
_______________________________________________
Mesa-dev maillist - [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev