summaryrefslogtreecommitdiff
path: root/src/mesa/state_tracker/st_context.c
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-09-25 15:18:51 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-09-25 15:18:51 -0600
commit3bf8d2ac7108a7f0f1722e411161e013bb8573f0 (patch)
tree536bbda0eb39dbf00e61b5ad8296fb776037e7ac /src/mesa/state_tracker/st_context.c
parent07f31a29b41be572c48fc1b440eaeb6a6b010cc8 (diff)
Disable vertex shader fog, compute fog in fragment shader.
Diffstat (limited to 'src/mesa/state_tracker/st_context.c')
-rw-r--r--src/mesa/state_tracker/st_context.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_context.c b/src/mesa/state_tracker/st_context.c
index e0304dd22d..7c20b036a4 100644
--- a/src/mesa/state_tracker/st_context.c
+++ b/src/mesa/state_tracker/st_context.c
@@ -26,6 +26,8 @@
**************************************************************************/
#include "main/imports.h"
+#include "main/extensions.h"
+#include "tnl/tnl.h"
#include "vbo/vbo.h"
#include "st_public.h"
#include "st_context.h"
@@ -98,6 +100,9 @@ struct st_context *st_create_context( GLcontext *ctx,
/* XXXX This is temporary! */
_mesa_enable_sw_extensions(ctx);
+ /* we'll always do per-pixel fog in the fragment shader */
+ _tnl_allow_vertex_fog(ctx, GL_FALSE);
+
return st;
}