From 667f0f60fc4f3f043449bbf98769d478d90f7b4e Mon Sep 17 00:00:00 2001 From: Roland Scheidegger Date: Tue, 1 Apr 2008 23:25:04 +0200 Subject: fix mistakenly set ATIFragmentShader._Enabled bit (bug 15269) --- src/mesa/main/state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c index 99b3f48b453..8266e4506fd 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 -- cgit v1.2.3