s/0/VERT_RESULT_HPOS/
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 30 Aug 2006 23:36:52 +0000 (23:36 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 30 Aug 2006 23:36:52 +0000 (23:36 +0000)
src/mesa/shader/nvvertparse.c

index ee6d9f122cb9caf24c15acae153ea316318283c5..3840dca22202ff6afceabd40185aa69e51f57d9a 100644 (file)
@@ -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)");