diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/shader/nvvertparse.c | 2 |
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)"); |