Mesa (st-vbo): mesa: better initial value for varying_vp_inputs

Keith Whitwell keithw at kemper.freedesktop.org
Tue Jun 30 13:21:03 UTC 2009


Module: Mesa
Branch: st-vbo
Commit: cd67a4acdf6d0b376c083215720546099288ac33
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=cd67a4acdf6d0b376c083215720546099288ac33

Author: Keith Whitwell <keithw at vmware.com>
Date:   Tue Jun 30 13:55:20 2009 +0100

mesa: better initial value for varying_vp_inputs

Use a minimal value for the initial value of varying_vp_inputs to avoid
generating programs in the first update_state which refer to inputs
which aren't in fact present.

---

 src/mesa/main/context.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index 415e339..7201125 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -735,7 +735,7 @@ init_attrib_groups(GLcontext *ctx)
    /* Miscellaneous */
    ctx->NewState = _NEW_ALL;
    ctx->ErrorValue = (GLenum) GL_NO_ERROR;
-   ctx->varying_vp_inputs = ~0;
+   ctx->varying_vp_inputs = VERT_BIT_POS;
 
    return GL_TRUE;
 }




More information about the mesa-commit mailing list