summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/r200
diff options
context:
space:
mode:
authorRoland Scheidegger <rscheidegger@gmx.ch>2006-09-13 17:30:11 +0000
committerRoland Scheidegger <rscheidegger@gmx.ch>2006-09-13 17:30:11 +0000
commit87d6028f28d35ae7f88a606c8119be627eb6599a (patch)
tree27ac61ea7d944b160a64971dde9ae73db09ebf76 /src/mesa/drivers/dri/r200
parent25d59d296223fcc44723aaf7005927fcd39eb390 (diff)
make sure we upload the new vertex program if the program string changes.
Diffstat (limited to 'src/mesa/drivers/dri/r200')
-rw-r--r--src/mesa/drivers/dri/r200/r200_vertprog.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r200/r200_vertprog.c b/src/mesa/drivers/dri/r200/r200_vertprog.c
index 1357d2e38f..cf0c15093f 100644
--- a/src/mesa/drivers/dri/r200/r200_vertprog.c
+++ b/src/mesa/drivers/dri/r200/r200_vertprog.c
@@ -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 */