From: Roland Scheidegger Date: Tue, 1 Apr 2008 21:24:11 +0000 (+0200) Subject: fix mistakenly set ATIFragmentShader._Enabled bit (bug 15269) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=28dfb0613b51c51d5f09010ea38d050a9ec817d7;p=mesa.git fix mistakenly set ATIFragmentShader._Enabled bit (bug 15269) --- diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c index a42c4fd805f..5ff67b654e8 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