fix mistakenly set ATIFragmentShader._Enabled bit (bug 15269)
authorRoland Scheidegger <sroland@tungstengraphics.com>
Tue, 1 Apr 2008 21:24:11 +0000 (23:24 +0200)
committerRoland Scheidegger <sroland@tungstengraphics.com>
Tue, 1 Apr 2008 21:24:11 +0000 (23:24 +0200)
src/mesa/main/state.c

index a42c4fd805f99a1dd29d991be625f5a1a689da65..5ff67b654e8807d744abeff78080d49a2c7bd632 100644 (file)
@@ -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