diff options
author | Brian <[email protected]> | 2007-05-02 18:45:44 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-05-02 18:45:44 -0600 |
commit | 60d136f63c5a5a18b12952ec8e8532cbce086a4d (patch) | |
tree | f9b031bc2d54d7d13c61d5a5c91cc6fec2502aa6 /src/mesa/swrast/s_fragprog.c | |
parent | 62da6a1b3e341e53981e2817595e0eea107fe6cb (diff) |
changes to get DDX/DDY working again
Diffstat (limited to 'src/mesa/swrast/s_fragprog.c')
-rw-r--r-- | src/mesa/swrast/s_fragprog.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/swrast/s_fragprog.c b/src/mesa/swrast/s_fragprog.c index 09493873aa2..b1501221cad 100644 --- a/src/mesa/swrast/s_fragprog.c +++ b/src/mesa/swrast/s_fragprog.c @@ -113,6 +113,10 @@ init_machine(GLcontext *ctx, struct gl_program_machine *machine, /* Setup pointer to input attributes */ machine->Attribs = span->array->attribs; + machine->DerivX = (GLfloat (*)[4]) span->attrStepX; + machine->DerivY = (GLfloat (*)[4]) span->attrStepY; + machine->NumDeriv = FRAG_ATTRIB_MAX; + if (ctx->Shader.CurrentProgram) { /* Store front/back facing value in register FOGC.Y */ machine->Attribs[FRAG_ATTRIB_FOGC][col][1] = (GLfloat) ctx->_Facing; |