summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2006-08-30 23:36:52 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2006-08-30 23:36:52 +0000
commitf6de865e56c953c8d0ddec2468b5283e644675be (patch)
tree16e5ab29550c53f64164935edcbee5629c8d59a9
parenta70d56485a2d0f15ee5b660e8931eb8657535e2d (diff)
s/0/VERT_RESULT_HPOS/
-rw-r--r--src/mesa/shader/nvvertparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/shader/nvvertparse.c b/src/mesa/shader/nvvertparse.c
index ee6d9f122c..3840dca222 100644
--- a/src/mesa/shader/nvvertparse.c
+++ b/src/mesa/shader/nvvertparse.c
@@ -1364,7 +1364,7 @@ _mesa_parse_nv_vertex_program(GLcontext *ctx, GLenum dstTarget,
}
else {
if (!parseState.isPositionInvariant &&
- !(parseState.outputsWritten & 1)) {
+ !(parseState.outputsWritten & (1 << VERT_RESULT_HPOS))) {
/* bit 1 = HPOS register */
_mesa_error(ctx, GL_INVALID_OPERATION,
"glLoadProgramNV(HPOS not written)");