summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2005-11-04 16:52:41 +0000
committerBrian Paul <[email protected]>2005-11-04 16:52:41 +0000
commit95ebb5f4856d1299591edc9f943d4faa3f1826c5 (patch)
treeb4ecefce55f571d46cb51b3de4235a2cd551a877 /src/mesa
parent2cb1cf484ad2f78b9c4ec9aea025b5afc9b4b43a (diff)
use VERT_RESULT_HPOS, VERT_BIT_POS tokens
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/shader/nvvertexec.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mesa/shader/nvvertexec.c b/src/mesa/shader/nvvertexec.c
index ad785193e3b..1d7c7c72a14 100644
--- a/src/mesa/shader/nvvertexec.c
+++ b/src/mesa/shader/nvvertexec.c
@@ -386,16 +386,16 @@ _mesa_exec_vertex_program(GLcontext *ctx, const struct vertex_program *program)
ctx->_CurrentProgram = GL_VERTEX_PROGRAM_ARB; /* or NV, doesn't matter */
- /* If the program is position invariant, multiply the input
- * position and the MVP matrix and stick it into the output pos slot
+ /* If the program is position invariant, multiply the input position
+ * by the MVP matrix and store in the vertex position result register.
*/
if (ctx->VertexProgram.Current->IsPositionInvariant) {
- TRANSFORM_POINT( ctx->VertexProgram.Outputs[0],
+ TRANSFORM_POINT( ctx->VertexProgram.Outputs[VERT_RESULT_HPOS],
ctx->_ModelProjectMatrix.m,
- ctx->VertexProgram.Inputs[0]);
+ ctx->VertexProgram.Inputs[VERT_ATTRIB_POS]);
/* XXX: This could go elsewhere */
- ctx->VertexProgram.Current->OutputsWritten |= 0x1;
+ ctx->VertexProgram.Current->OutputsWritten |= VERT_BIT_POS;
}
for (inst = program->Instructions; ; inst++) {