call Driver.ProgramStringNotify if a ati_fragment_shader changes and pick up the...
authorRoland Scheidegger <rscheidegger@gmx.ch>
Wed, 29 Nov 2006 16:41:28 +0000 (16:41 +0000)
committerRoland Scheidegger <rscheidegger@gmx.ch>
Wed, 29 Nov 2006 16:41:28 +0000 (16:41 +0000)
src/mesa/drivers/dri/r200/r200_vertprog.c
src/mesa/shader/atifragshader.c

index b5afe51d82468b37ca82a07b34a14e4555f0f04c..ce14c617c8ea451f5e329187da55e673d75ebf86 100644 (file)
@@ -1205,6 +1205,9 @@ r200ProgramStringNotify(GLcontext *ctx, GLenum target, struct gl_program *prog)
       r200_translate_vertex_program(ctx, vp);
       rmesa->curr_vp_hw = NULL;
       break;
+   case GL_FRAGMENT_SHADER_ATI:
+      rmesa->afs_loaded = NULL;
+      break;
    }
    /* need this for tcl fallbacks */
    _tnl_program_string(ctx, target, prog);
index d349a496dc718fc651fe45f4a3d23616bff860ea..4727c1a43657016fb6177e0272b4b361de62a024 100644 (file)
@@ -400,6 +400,8 @@ _mesa_EndFragmentShaderATI(void)
       }
    }
 #endif
+   if (ctx->Driver.ProgramStringNotify)
+      ctx->Driver.ProgramStringNotify( ctx, GL_FRAGMENT_SHADER_ATI, NULL );
 }
 
 void GLAPIENTRY