summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2002-01-12 02:55:30 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2002-01-12 02:55:30 +0000
commitc6755aa6d55493a000644ba74233387d408d070f (patch)
tree42488fb4051ca353082962e2dd6778f45a026270 /src/mesa
parent8e6d305c89fa2e6d36801707390ed4dbe14fd824 (diff)
set _NeedEyeCoords to zero if vertex program is enabled
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/state.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c
index 82b2ea1f3b..3d093de48e 100644
--- a/src/mesa/main/state.c
+++ b/src/mesa/main/state.c
@@ -1,4 +1,4 @@
-/* $Id: state.c,v 1.75 2001/12/18 04:06:45 brianp Exp $ */
+/* $Id: state.c,v 1.76 2002/01/12 02:55:30 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -957,6 +957,13 @@ void _mesa_update_state( GLcontext *ctx )
ctx->_NeedEyeCoords |= NEED_EYE_LIGHT_MODELVIEW;
}
+ /* XXX this is a bit of a hack. We should be checking elsewhere if
+ * vertex program mode is enabled. We set _NeedEyeCoords to zero to
+ * ensure that the combined modelview/projection matrix is computed
+ * in calculate_model_project_matrix().
+ */
+ if (ctx->VertexProgram.Enabled)
+ ctx->_NeedEyeCoords = 0;
/* ctx->_NeedEyeCoords is now uptodate.
*