diff options
author | Brian <[email protected]> | 2007-10-24 11:37:05 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-10-24 12:38:07 -0600 |
commit | f68fce1f1f61997f284b77cca5b5765cd7443240 (patch) | |
tree | e1398a0d0a38ca30a25d667cdfab0db025ebc5d5 /src/mesa/swrast/s_fragprog.c | |
parent | 3a345e000350c1590367f01be5db6f0f10701283 (diff) |
Implement gl_PointCoord attribute for GLSL fragment shaders.
Contains the normalized fragment position within a point sprite.
Diffstat (limited to 'src/mesa/swrast/s_fragprog.c')
-rw-r--r-- | src/mesa/swrast/s_fragprog.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/swrast/s_fragprog.c b/src/mesa/swrast/s_fragprog.c index 14c9868c180..6656ebc0d0c 100644 --- a/src/mesa/swrast/s_fragprog.c +++ b/src/mesa/swrast/s_fragprog.c @@ -113,6 +113,7 @@ init_machine(GLcontext *ctx, struct gl_program_machine *machine, machine->DerivY = (GLfloat (*)[4]) span->attrStepY; machine->NumDeriv = FRAG_ATTRIB_MAX; + /* if running a GLSL program (not ARB_fragment_program) */ if (ctx->Shader.CurrentProgram) { /* Store front/back facing value in register FOGC.Y */ machine->Attribs[FRAG_ATTRIB_FOGC][col][1] = (GLfloat) ctx->_Facing; |