summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/draw/draw_flatshade.c
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-08-31 11:27:16 -0600
committerBrian <[email protected]>2007-08-31 11:27:16 -0600
commit2e21058e3d2c484b282cbc0bb5e7169b9a8d4fc7 (patch)
tree240d5bbd4a45a98e19d104f62e7e3a687209ca1e /src/mesa/pipe/draw/draw_flatshade.c
parent898d68a3762f84f0d435cda2f6aafddd356d1788 (diff)
Define attrib_format and interp_mode enum typedefs and use where appropriate.
Diffstat (limited to 'src/mesa/pipe/draw/draw_flatshade.c')
-rw-r--r--src/mesa/pipe/draw/draw_flatshade.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/pipe/draw/draw_flatshade.c b/src/mesa/pipe/draw/draw_flatshade.c
index ae7bd245544..2ba0d5820e9 100644
--- a/src/mesa/pipe/draw/draw_flatshade.c
+++ b/src/mesa/pipe/draw/draw_flatshade.c
@@ -56,12 +56,12 @@ static INLINE void copy_colors( struct draw_stage *stage,
const struct vertex_header *src )
{
const uint num_attribs = stage->draw->vertex_info.num_attribs;
- const uint *interp_mode = stage->draw->vertex_info.interp_mode;
+ const interp_mode *interp = stage->draw->vertex_info.interp_mode;
uint i;
/* Look for constant/flat attribs and duplicate from src to dst vertex */
for (i = 1; i < num_attribs - 2; i++) {
- if (interp_mode[i + 2] == INTERP_CONSTANT) {
+ if (interp[i + 2] == INTERP_CONSTANT) {
copy_attr( i, dst, src );
}
}