pass color index as float, not int
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 21 Apr 2006 02:44:35 +0000 (02:44 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 21 Apr 2006 02:44:35 +0000 (02:44 +0000)
src/mesa/main/dlist.c

index 4fe1bfddcc92a9e43847e5b4a73f3c13ff96a767..790cace05cdf2ba40205d92d1d57479eb6fe6e57 100644 (file)
@@ -5037,7 +5037,7 @@ save_Indexf(GLfloat x)
    ctx->ListState.CurrentIndex = x;
 
    if (ctx->ExecuteFlag) {
-      CALL_Indexi(ctx->Exec, ((GLint) x));
+      CALL_Indexf(ctx->Exec, (x));
    }
 }
 
@@ -6527,7 +6527,7 @@ execute_list(GLcontext *ctx, GLuint list)
             }
             break;
          case OPCODE_INDEX:
-            CALL_Indexi(ctx->Exec, (n[1].i));
+            CALL_Indexf(ctx->Exec, (n[1].f));
             break;
          case OPCODE_EDGEFLAG:
             CALL_EdgeFlag(ctx->Exec, (n[1].b));