summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-04-18 12:41:16 -0600
committerBrian <[email protected]>2007-04-18 12:41:16 -0600
commite57e752eeef1611cbc8bf9e0aca8c2467267f027 (patch)
treecb827a534ed3fb0694f2f12a4626400e8c90e584 /src/mesa
parent884af408644e3fa9aa0ffc544f84ec4a7f3a93b9 (diff)
call ProgramStringNotify() after linking
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/shader/slang/slang_link.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/shader/slang/slang_link.c b/src/mesa/shader/slang/slang_link.c
index 20c66909b27..360af0922fa 100644
--- a/src/mesa/shader/slang/slang_link.c
+++ b/src/mesa/shader/slang/slang_link.c
@@ -566,6 +566,9 @@ _slang_link(GLcontext *ctx,
_slang_update_inputs_outputs(&shProg->FragmentProgram->Base);
if (fragProg && shProg->FragmentProgram) {
+ /* notify driver that a new fragment program has been compiled/linked */
+ ctx->Driver.ProgramStringNotify(ctx, GL_FRAGMENT_PROGRAM_ARB,
+ &shProg->FragmentProgram->Base);
#if 0
printf("************** original fragment program\n");
_mesa_print_program(&fragProg->Base);
@@ -579,6 +582,9 @@ _slang_link(GLcontext *ctx,
}
if (vertProg && shProg->VertexProgram) {
+ /* notify driver that a new vertex program has been compiled/linked */
+ ctx->Driver.ProgramStringNotify(ctx, GL_VERTEX_PROGRAM_ARB,
+ &shProg->VertexProgram->Base);
#if 0
printf("************** original vertex program\n");
_mesa_print_program(&vertProg->Base);