diff options
author | Brian Paul <[email protected]> | 2010-07-15 10:46:33 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2010-07-15 10:49:56 -0600 |
commit | 3fde89e4395d260821f4e76a0fe36c265c148a73 (patch) | |
tree | d366371a57affc51819c83c0f09abdf671b66d02 /configs/hpux10-static | |
parent | 0eaccb30de9bc638dabb1edbd2c831bacba3cf36 (diff) |
st/mesa: fix quad strip trimming bug
The translate_prim() function tries to convert quad strips into
tri strips. This is normally OK but we have to check for an odd
number of vertices so that we don't accidentally draw an extra
triangle. The mesa-demos/src/samples/prim.c demo exercises that.
With this fix the stray yellow triangle is no longer drawn.
Use the u_trim_pipe_prim() function to make sure that prims have
the right number of vertices and avoid calling gallium drawing
functions when the prim has a degenerate number of vertices.
Plus add comments, clean-up formatting, etc.
NOTE: This is a candidate for the 7.8 branch.
Diffstat (limited to 'configs/hpux10-static')
0 files changed, 0 insertions, 0 deletions