ir_to_mesa: Notify the driver when we generate new Mesa programs for GLSL.
authorEric Anholt <eric@anholt.net>
Mon, 28 Jun 2010 19:35:54 +0000 (12:35 -0700)
committerEric 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

index 30d05c39ef4bf88f17cd09799c38270d7ba03fa1..90684ad5559d9279d58f1ce7dc7cc1b92b718150 100644 (file)
@@ -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;
         }
       }