From: Brian Paul Date: Wed, 30 Aug 2006 23:36:52 +0000 (+0000) Subject: s/0/VERT_RESULT_HPOS/ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f6de865e56c953c8d0ddec2468b5283e644675be;p=mesa.git s/0/VERT_RESULT_HPOS/ --- 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)");