projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
904b5bf
)
ir_to_mesa: Notify the driver when we generate new Mesa programs for GLSL.
author
Eric Anholt
<eric@anholt.net>
Mon, 28 Jun 2010 19:35:54 +0000
(12:35 -0700)
committer
Eric Anholt
<eric@anholt.net>
Mon, 28 Jun 2010 19:38:19 +0000
(12:38 -0700)
Fixes glsl-fs-if-*.
src/mesa/shader/ir_to_mesa.cpp
patch
|
blob
|
history
diff --git
a/src/mesa/shader/ir_to_mesa.cpp
b/src/mesa/shader/ir_to_mesa.cpp
index 30d05c39ef4bf88f17cd09799c38270d7ba03fa1..90684ad5559d9279d58f1ce7dc7cc1b92b718150 100644
(file)
--- a/
src/mesa/shader/ir_to_mesa.cpp
+++ b/
src/mesa/shader/ir_to_mesa.cpp
@@
-1609,10
+1609,14
@@
_mesa_glsl_link_shader(GLcontext *ctx, struct gl_shader_program *prog)
case GL_VERTEX_SHADER:
_mesa_reference_vertprog(ctx, &prog->VertexProgram,
(struct gl_vertex_program *)linked_prog);
+ ctx->Driver.ProgramStringNotify(ctx, GL_VERTEX_PROGRAM_ARB,
+ linked_prog);
break;
case GL_FRAGMENT_SHADER:
_mesa_reference_fragprog(ctx, &prog->FragmentProgram,
(struct gl_fragment_program *)linked_prog);
+ ctx->Driver.ProgramStringNotify(ctx, GL_FRAGMENT_PROGRAM_ARB,
+ linked_prog);
break;
}
}