mesa: remove invalid assertions that programs have parameters
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 26 Sep 2008 13:45:06 +0000 (07:45 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 26 Sep 2008 13:45:06 +0000 (07:45 -0600)
Fixes failure with demos/fplight.c

src/mesa/main/state.c

index d233201b0ba36cc49eea91691a7a743477b710ab..48656bd35eef35ce6c2b14c3926624310b99e166 100644 (file)
@@ -258,12 +258,6 @@ update_program(GLcontext *ctx)
       }
    }
 
-   if (ctx->VertexProgram._Current)
-      assert(ctx->VertexProgram._Current->Base.Parameters);
-   if (ctx->FragmentProgram._Current)
-      assert(ctx->FragmentProgram._Current->Base.Parameters);
-
-
    /* XXX: get rid of _Active flag.
     */
 #if 1