#include "context.h"
#include "nvfragprog.h"
#include "macros.h"
+#include "program.h"
#include "s_nvfragprog.h"
#include "s_span.h"
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();
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();