From 1e4731f6443a6efdfc4e425977490ddd5387caa3 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 9 Mar 2004 16:58:26 +0000 Subject: Fix color index mode rendering. Changed SWvertex's index field to GLfloat and fix a few other bits. --- src/mesa/swrast/s_linetemp.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mesa/swrast/s_linetemp.h') diff --git a/src/mesa/swrast/s_linetemp.h b/src/mesa/swrast/s_linetemp.h index 1cb330dbdf..77c985455d 100644 --- a/src/mesa/swrast/s_linetemp.h +++ b/src/mesa/swrast/s_linetemp.h @@ -251,11 +251,11 @@ NAME( GLcontext *ctx, const SWvertex *vert0, const SWvertex *vert1 ) #ifdef INTERP_INDEX interpFlags |= SPAN_INDEX; if (ctx->Light.ShadeModel == GL_SMOOTH) { - span.index = IntToFixed(vert0->index); - span.indexStep = IntToFixed(vert1->index - vert0->index) / numPixels; + span.index = FloatToFixed(vert0->index); + span.indexStep = FloatToFixed(vert1->index - vert0->index) / numPixels; } else { - span.index = IntToFixed(vert1->index); + span.index = FloatToFixed(vert1->index); span.indexStep = 0; } #endif -- cgit v1.2.3