switch(rcc->Type) {
case RC_CONSTANT_EXTERNAL:
- return ctx->FragmentProgram._Current->Base.Parameters->ParameterValues[rcc->u.External];
+ return &ctx->FragmentProgram._Current->Base.Parameters->ParameterValues[rcc->u.External][0].f;
case RC_CONSTANT_IMMEDIATE:
return rcc->u.Immediate;
case RC_CONSTANT_STATE:
if (vp->Base->IsNVProgram) {
src = ctx->VertexProgram.Parameters[constant->u.External];
} else {
- src = vp->Base->Base.Parameters->ParameterValues[constant->u.External];
+ src = &vp->Base->Base.Parameters->ParameterValues[constant->u.External][0].f;
}
break;