Mesa (glsl2): ir_to_mesa: Notify the driver when we generate new Mesa programs for GLSL.
Eric Anholt
anholt at kemper.freedesktop.org
Mon Jun 28 20:30:14 UTC 2010
Module: Mesa
Branch: glsl2
Commit: 7dc1e0b3267f0bf4dc0ef015b972f7fa6c4c317a
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7dc1e0b3267f0bf4dc0ef015b972f7fa6c4c317a
Author: Eric Anholt <eric at anholt.net>
Date: Mon Jun 28 12:35:54 2010 -0700
ir_to_mesa: Notify the driver when we generate new Mesa programs for GLSL.
Fixes glsl-fs-if-*.
---
src/mesa/shader/ir_to_mesa.cpp | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/mesa/shader/ir_to_mesa.cpp b/src/mesa/shader/ir_to_mesa.cpp
index 30d05c3..90684ad 100644
--- 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;
}
}
More information about the mesa-commit
mailing list