[EMAIL PROTECTED] wrote:
> 
> While debugging wrong colors in clipped triangles in the MGA GLX driver
> I discovered that the triangle function was called with
> tri(VB, p0,p1,p2, pv) - with pv being a clipped vertex!
> 
> I could fix this in the MGA driver by simply copying the color also
> for clipped vertices into the device VB but this should be fixed in
> core Mesa...

There's no real way to fix it in mesa - that is the correct behaviour for flat
triangles.  It's a bug in the mga driver and/or the mga triangle function - it
should either populate color in every vertex if flat-shading is enabled, or pull
the color from the VB->ColorPtr array, rather than looking for it in the vertex
list.

In my last commit to glx (minutes ago), I've hacked the RastSetup routines to
always populate color, even for clipped vertices and even if flat-shading is
disabled.  This isn't optimal, but it fixes the gears bug.

Keith


_______________________________________________
Mesa-dev maillist  -  [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev

Reply via email to