Mesa (gallium-0.1): Revert "mesa: fix vertex program test in get_fp_input_mask()"

Brian Paul brianp at kemper.freedesktop.org
Wed Dec 17 18:29:53 UTC 2008


Module: Mesa
Branch: gallium-0.1
Commit: a8751f49167df81611390377aa3e84aba1ed3ae3
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a8751f49167df81611390377aa3e84aba1ed3ae3

Author: Brian Paul <brian.paul at tungstengraphics.com>
Date:   Wed Dec 17 11:29:42 2008 -0700

Revert "mesa: fix vertex program test in get_fp_input_mask()"

This reverts commit cdaaf8e107010624bed4abdf9553c0ef63c8b708.

---

 src/mesa/main/texenvprogram.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/mesa/main/texenvprogram.c b/src/mesa/main/texenvprogram.c
index b99bcb1..c279956 100644
--- a/src/mesa/main/texenvprogram.c
+++ b/src/mesa/main/texenvprogram.c
@@ -215,7 +215,9 @@ static GLbitfield get_fp_input_mask( GLcontext *ctx )
    else if (ctx->RenderMode == GL_FEEDBACK) {
       fp_inputs = (FRAG_BIT_COL0 | FRAG_BIT_TEX0);
    }
-   else if (!ctx->VertexProgram._Current) {
+   else if (!ctx->VertexProgram._Enabled ||
+            !ctx->VertexProgram._Current) {
+
       /* Fixed function logic */
       GLbitfield varying_inputs = ctx->varying_vp_inputs;
 




More information about the mesa-commit mailing list