mesa: remove unneeded _mesa_reference_fragprog() call

The subsequent if/else cases always call _mesa_reference_fragprog() anyway.
This commit is contained in:
Brian Paul
2008-12-17 18:05:03 -07:00
parent 8e7599892f
commit 35aebf4667

View File

@@ -190,8 +190,8 @@ update_program(GLcontext *ctx)
/* /*
* Set the ctx->VertexProgram._Current and ctx->FragmentProgram._Current * Set the ctx->VertexProgram._Current and ctx->FragmentProgram._Current
* pointers to the programs that should be enabled/used. These will only * pointers to the programs that should be used for rendering. If either
* be NULL if we need to use the fixed-function code. * is NULL, use fixed-function code paths.
* *
* These programs may come from several sources. The priority is as * These programs may come from several sources. The priority is as
* follows: * follows:
@@ -204,8 +204,6 @@ update_program(GLcontext *ctx)
* come up, or matter. * come up, or matter.
*/ */
_mesa_reference_fragprog(ctx, &ctx->FragmentProgram._Current, NULL);
if (shProg && shProg->LinkStatus && shProg->FragmentProgram) { if (shProg && shProg->LinkStatus && shProg->FragmentProgram) {
/* Use shader programs */ /* Use shader programs */
_mesa_reference_fragprog(ctx, &ctx->FragmentProgram._Current, _mesa_reference_fragprog(ctx, &ctx->FragmentProgram._Current,