mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
pass color index as float, not int
This commit is contained in:
parent
ba999b1a3f
commit
b87957d59a
1 changed files with 2 additions and 2 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue