From: Brian Paul Date: Mon, 11 Aug 2008 21:05:57 +0000 (-0600) Subject: mesa: added comment about gl_PointCoord X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3a428aca93fe2bab84ddfaf794a396133e802465;p=mesa.git mesa: added comment about gl_PointCoord --- diff --git a/src/mesa/swrast/s_fragprog.c b/src/mesa/swrast/s_fragprog.c index bf7a1de03bc..525cf9d7245 100644 --- a/src/mesa/swrast/s_fragprog.c +++ b/src/mesa/swrast/s_fragprog.c @@ -129,6 +129,7 @@ init_machine(GLcontext *ctx, struct gl_program_machine *machine, if (ctx->Shader.CurrentProgram) { /* Store front/back facing value in register FOGC.Y */ machine->Attribs[FRAG_ATTRIB_FOGC][col][1] = 1.0 - span->facing; + /* Note FOGC.ZW is gl_PointCoord if drawing a sprite */ } machine->CurElement = col;