make sure we upload the new vertex program if the program string changes.
authorRoland Scheidegger <rscheidegger@gmx.ch>
Wed, 13 Sep 2006 17:30:11 +0000 (17:30 +0000)
committerRoland Scheidegger <rscheidegger@gmx.ch>
Wed, 13 Sep 2006 17:30:11 +0000 (17:30 +0000)
src/mesa/drivers/dri/r200/r200_vertprog.c

index 1357d2e38ffebbb4f230063b900ea9a69c394b1a..cf0c15093fddaaa94fb4b1de515511415f84274a 100644 (file)
@@ -1099,12 +1099,14 @@ static void
 r200ProgramStringNotify(GLcontext *ctx, GLenum target, struct gl_program *prog)
 {
    struct r200_vertex_program *vp = (void *)prog;
+   r200ContextPtr rmesa = R200_CONTEXT(ctx);
 
    switch(target) {
    case GL_VERTEX_PROGRAM_ARB:
       vp->translated = GL_FALSE;
 /*      memset(&vp->translated, 0, sizeof(struct r200_vertex_program) - sizeof(struct gl_vertex_program));*/
       r200_translate_vertex_program(vp);
+      rmesa->curr_vp_hw = NULL;
       break;
    }
    /* need this for tcl fallbacks */