diff options
author | Brian Paul <[email protected]> | 2004-03-09 16:58:26 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2004-03-09 16:58:26 +0000 |
commit | 1e4731f6443a6efdfc4e425977490ddd5387caa3 (patch) | |
tree | 9b830c21e9fddf93a63b983a6570cab643e3e12e /src/mesa/swrast/s_triangle.c | |
parent | 7bcada8c278a17e6170e35f1aaf74dd88294ddc5 (diff) |
Fix color index mode rendering.
Changed SWvertex's index field to GLfloat and fix a few other bits.
Diffstat (limited to 'src/mesa/swrast/s_triangle.c')
-rw-r--r-- | src/mesa/swrast/s_triangle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/swrast/s_triangle.c b/src/mesa/swrast/s_triangle.c index 01cd754e4ab..ab262beabc1 100644 --- a/src/mesa/swrast/s_triangle.c +++ b/src/mesa/swrast/s_triangle.c @@ -77,7 +77,7 @@ _swrast_culltriangle( GLcontext *ctx, #define INTERP_FOG 1 #define SETUP_CODE \ span.interpMask |= SPAN_INDEX; \ - span.index = IntToFixed(v2->index); \ + span.index = FloatToFixed(v2->index);\ span.indexStep = 0; #define RENDER_SPAN( span ) _swrast_write_index_span(ctx, &span); #include "s_tritemp.h" |