diff options
Diffstat (limited to 'src/mesa/swrast/s_nvfragprog.c')
-rw-r--r-- | src/mesa/swrast/s_nvfragprog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/swrast/s_nvfragprog.c b/src/mesa/swrast/s_nvfragprog.c index c0c097a8d7..332edc5c86 100644 --- a/src/mesa/swrast/s_nvfragprog.c +++ b/src/mesa/swrast/s_nvfragprog.c @@ -121,7 +121,7 @@ get_register_pointer( GLcontext *ctx, src = ctx->FragmentProgram.Parameters[source->Index]; break; case PROGRAM_NAMED_PARAM: - ASSERT(source->Index < program->Parameters->NumParameters); + ASSERT(source->Index < (GLint) program->Parameters->NumParameters); src = program->Parameters->Parameters[source->Index].Values; break; case PROGRAM_STATE_VAR: |