diff options
Diffstat (limited to 'src/mesa/program/program.c')
-rw-r--r-- | src/mesa/program/program.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/program/program.c b/src/mesa/program/program.c index e235d6ce68a..5cc18d4099c 100644 --- a/src/mesa/program/program.c +++ b/src/mesa/program/program.c @@ -936,7 +936,7 @@ _mesa_valid_register_index(const struct gl_context *ctx, case MESA_SHADER_FRAGMENT: return index < FRAG_ATTRIB_VAR0 + (GLint) ctx->Const.MaxVarying; case MESA_SHADER_GEOMETRY: - return index < GEOM_ATTRIB_VAR0 + (GLint) ctx->Const.MaxVarying; + return index < VARYING_SLOT_VAR0 + (GLint) ctx->Const.MaxVarying; default: return GL_FALSE; } |