summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoland Scheidegger <sroland@tungstengraphics.com>2008-04-01 23:24:11 +0200
committerRoland Scheidegger <sroland@tungstengraphics.com>2008-04-01 23:24:11 +0200
commit28dfb0613b51c51d5f09010ea38d050a9ec817d7 (patch)
tree9d26b437c8d097273b372283e10f4fbdef074414 /src
parent5c4ca968fab1b0b993fabeb73e3a5d92cbaadaf1 (diff)
fix mistakenly set ATIFragmentShader._Enabled bit (bug 15269)
Diffstat (limited to 'src')
-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 a42c4fd805..5ff67b654e 100644
--- a/src/mesa/main/state.c
+++ b/src/mesa/main/state.c
@@ -965,7 +965,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