summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland Scheidegger <sroland@tungstengraphics.com>2008-04-01 23:25:04 +0200
committerRoland Scheidegger <sroland@tungstengraphics.com>2008-04-01 23:25:04 +0200
commit667f0f60fc4f3f043449bbf98769d478d90f7b4e (patch)
treeee5b67d7438aff386673ba192b7521c54f057366
parent7592b8cc102312c7499528517239903fe5d3e1a7 (diff)
fix mistakenly set ATIFragmentShader._Enabled bit (bug 15269)
-rw-r--r--src/mesa/main/state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c
index 99b3f48b45..8266e4506f 100644
--- a/src/mesa/main/state.c
+++ b/src/mesa/main/state.c
@@ -960,7 +960,7 @@ update_program(GLcontext *ctx)
ctx->FragmentProgram._Enabled = ctx->FragmentProgram.Enabled
&& ctx->FragmentProgram.Current->Base.Instructions;
ctx->ATIFragmentShader._Enabled = ctx->ATIFragmentShader.Enabled
- && ctx->ATIFragmentShader.Current->Instructions;
+ && ctx->ATIFragmentShader.Current->Instructions[0];
/*
* Set the ctx->VertexProgram._Current and ctx->FragmentProgram._Current