summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2003-08-31 18:55:23 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2003-08-31 18:55:23 +0000
commit7961e67c2ae75f6cd32d7ac7cbe9f887da10c865 (patch)
tree2066a3304eff60ad04dd22581f7041de81c63f34 /src
parent1c5ff572aaaf533377f91dbd4bcd4411d855fabc (diff)
update parameter indexing
Diffstat (limited to 'src')
-rw-r--r--src/mesa/swrast/s_nvfragprog.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mesa/swrast/s_nvfragprog.c b/src/mesa/swrast/s_nvfragprog.c
index 63a30d4e7c..92fc6ed452 100644
--- a/src/mesa/swrast/s_nvfragprog.c
+++ b/src/mesa/swrast/s_nvfragprog.c
@@ -28,6 +28,7 @@
#include "context.h"
#include "nvfragprog.h"
#include "macros.h"
+#include "program.h"
#include "s_nvfragprog.h"
#include "s_span.h"
@@ -123,8 +124,8 @@ fetch_vector4( GLcontext *ctx,
src = ctx->FragmentProgram.Parameters[source->Index];
break;
case PROGRAM_NAMED_PARAM:
- ASSERT(source->Index < program->NumParameters);
- src = program->Parameters[source->Index].Values;
+ ASSERT(source->Index < program->Parameters->NumParameters);
+ src = program->Parameters->Parameters[source->Index].Values;
break;
case PROGRAM_STATE_VAR:
abort();
@@ -316,8 +317,8 @@ fetch_vector1( GLcontext *ctx,
src = ctx->FragmentProgram.Parameters[source->Index];
break;
case PROGRAM_NAMED_PARAM:
- ASSERT(source->Index < program->NumParameters);
- src = program->Parameters[source->Index].Values;
+ ASSERT(source->Index < program->Parameters->NumParameters);
+ src = program->Parameters->Parameters[source->Index].Values;
break;
case PROGRAM_STATE_VAR:
abort();