program: Remove extra reference_program()
authorMiklós Máté <mtmkls@gmail.com>
Tue, 15 Dec 2015 23:05:44 +0000 (00:05 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 25 Feb 2016 21:02:50 +0000 (22:02 +0100)
It was already done in get_mesa_program()

Signed-off-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/program/ir_to_mesa.cpp

index 495048d4bfcab9f60063bd958473ffae6240256d..4db62504ac7251d8dc9280a4cfbfdfadabbcffb4 100644 (file)
@@ -2998,8 +2998,6 @@ _mesa_ir_link_shader(struct gl_context *ctx, struct gl_shader_program *prog)
       if (linked_prog) {
          _mesa_copy_linked_program_data((gl_shader_stage) i, prog, linked_prog);
 
-        _mesa_reference_program(ctx, &prog->_LinkedShaders[i]->Program,
-                                linked_prog);
          if (!ctx->Driver.ProgramStringNotify(ctx,
                                               _mesa_shader_stage_to_program(i),
                                               linked_prog)) {