diff options
author | Brian Paul <brianp@vmware.com> | 2009-05-30 20:09:19 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-05-30 20:09:19 -0600 |
commit | 6c3cefdda6c98d5f0df874c7f1d8c5421cc8468b (patch) | |
tree | ab1b50048475d86150bd79a93ce424d27b01620e /src/gallium/drivers/softpipe/sp_setup.c | |
parent | fa0ca31586f2523ac65dbf9c1fdca99dfbca7456 (diff) |
Revert "softpipe: fix flat shading provoking vertex for PIPE_PRIM_POLYGON"
This reverts commit 5d75124db480b37977c353511b4e228905b7cc95.
This fixed unclipped polygons, but broke clipped polygons.
A better fix from the mesa 7.5 branch will be merged next...
Diffstat (limited to 'src/gallium/drivers/softpipe/sp_setup.c')
-rw-r--r-- | src/gallium/drivers/softpipe/sp_setup.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gallium/drivers/softpipe/sp_setup.c b/src/gallium/drivers/softpipe/sp_setup.c index 4f0baa3fd4..c6844a2649 100644 --- a/src/gallium/drivers/softpipe/sp_setup.c +++ b/src/gallium/drivers/softpipe/sp_setup.c @@ -514,10 +514,7 @@ static boolean setup_sort_vertices( struct setup_context *setup, const float (*v1)[4], const float (*v2)[4] ) { - if (setup->softpipe->api_prim == PIPE_PRIM_POLYGON) - setup->vprovoke = v0; - else - setup->vprovoke = v2; + setup->vprovoke = v2; /* determine bottom to top order of vertices */ { |