From f6de865e56c953c8d0ddec2468b5283e644675be Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 30 Aug 2006 23:36:52 +0000 Subject: s/0/VERT_RESULT_HPOS/ --- src/mesa/shader/nvvertparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa/shader') diff --git a/src/mesa/shader/nvvertparse.c b/src/mesa/shader/nvvertparse.c index ee6d9f122cb..3840dca2220 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)"); -- cgit v1.2.3