summaryrefslogtreecommitdiff
path: root/src/mesa/main/state.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-12-17 18:05:03 -0700
committerBrian Paul <brian.paul@tungstengraphics.com>2008-12-18 14:17:06 -0700
commit60410fc8587ce2bf09a5dc5d744268aa83701522 (patch)
tree0fd8425bd528ef98f10f6e16541328324e1e7249 /src/mesa/main/state.c
parent867705b8c5bd78af12df177ff8eca8a5a295fa61 (diff)
mesa: remove unneeded _mesa_reference_fragprog() call
The subsequent if/else cases always call _mesa_reference_fragprog() anyway.
Diffstat (limited to 'src/mesa/main/state.c')
-rw-r--r--src/mesa/main/state.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c
index 0d452fd879..3c111759d2 100644
--- a/src/mesa/main/state.c
+++ b/src/mesa/main/state.c
@@ -190,8 +190,8 @@ update_program(GLcontext *ctx)
/*
* Set the ctx->VertexProgram._Current and ctx->FragmentProgram._Current
- * pointers to the programs that should be enabled/used. These will only
- * be NULL if we need to use the fixed-function code.
+ * pointers to the programs that should be used for rendering. If either
+ * is NULL, use fixed-function code paths.
*
* These programs may come from several sources. The priority is as
* follows:
@@ -204,8 +204,6 @@ update_program(GLcontext *ctx)
* come up, or matter.
*/
- _mesa_reference_fragprog(ctx, &ctx->FragmentProgram._Current, NULL);
-
if (shProg && shProg->LinkStatus && shProg->FragmentProgram) {
/* Use shader programs */
_mesa_reference_fragprog(ctx, &ctx->FragmentProgram._Current,