From: Brian Date: Mon, 29 Oct 2007 15:23:46 +0000 (-0600) Subject: Disable the else clause which assigns the default fragment program to ctx->FragmentPr... X-Git-Tag: 062012170305~17580^2~390^2~3635 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2a3f3679eba802dcb4b46f90c66326c9195cdbcb;p=profile%2Fivi%2Fmesa.git Disable the else clause which assigns the default fragment program to ctx->FragmentProgram._Current The _Current field should either point to the fragment program which is to be run (GLSL, ARB_f_p, fixed-func-generated, etc) or be NULL if conventional fixed-function code is to be used. Matches TNL program code. --- diff --git a/src/mesa/main/texenvprogram.c b/src/mesa/main/texenvprogram.c index abc2567..21a2904 100644 --- a/src/mesa/main/texenvprogram.c +++ b/src/mesa/main/texenvprogram.c @@ -1279,9 +1279,11 @@ _mesa_UpdateTexEnvProgram( GLcontext *ctx ) _mesa_printf("Found existing texenv program for key %x\n", hash); } } +#if 0 else { ctx->FragmentProgram._Current = ctx->FragmentProgram.Current; } +#endif /* Tell the driver about the change. Could define a new target for * this?