diff options
author | Brian <[email protected]> | 2007-10-24 11:37:05 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-10-24 11:37:05 -0600 |
commit | e48f0b09abe42aa3393a492af07e53b76ad0ff3c (patch) | |
tree | 9a3883b6ca306e2f68caae650c6ae1edd120f042 /src/mesa/swrast/s_fragprog.c | |
parent | c9d495c6f064aacd1e072033b9c17a83b8c37fa1 (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; |