aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorZou Nan hai <[email protected]>2007-10-08 15:34:03 +0800
committerZou Nan hai <[email protected]>2007-10-08 15:34:03 +0800
commitac985708f4820173bdc4509d032bdabeb93a0590 (patch)
treede667e344f60933b802ca7f718ef233945615bfb /src/mesa/main
parent3d6c4109902b555a3f8076170d572c7caeb6cbfe (diff)
Only vertex program fix, bypass tnl vertex program
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/texenvprogram.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/texenvprogram.c b/src/mesa/main/texenvprogram.c
index 72b54b27d9a..126a9e1179d 100644
--- a/src/mesa/main/texenvprogram.c
+++ b/src/mesa/main/texenvprogram.c
@@ -1239,7 +1239,7 @@ _mesa_UpdateTexEnvProgram( GLcontext *ctx )
/* If a conventional fragment program/shader isn't in effect... */
if (!ctx->FragmentProgram._Enabled &&
- !ctx->Shader.CurrentProgram) {
+ (!ctx->Shader.CurrentProgram || !ctx->Shader.CurrentProgram->FragmentProgram)) {
make_state_key(ctx, &key);
hash = hash_key(&key);