fix span->facing computation and gl_FrontFacing initialization

This commit is contained in:
Brian
2007-12-04 14:06:10 -07:00
parent 2ee7035886
commit 02afd45d3b
2 changed files with 6 additions and 7 deletions

View File

@@ -120,7 +120,7 @@ init_machine(GLcontext *ctx, struct gl_program_machine *machine,
/* 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) span->facing;
machine->Attribs[FRAG_ATTRIB_FOGC][col][1] = 1.0 - span->facing;
}
machine->CurElement = col;