summaryrefslogtreecommitdiffstats
path: root/src/mesa/program/ir_to_mesa.cpp
diff options
context:
space:
mode:
authorMiklós Máté <[email protected]>2015-12-16 00:05:44 +0100
committerMarek Olšák <[email protected]>2016-02-25 22:02:50 +0100
commit847f1cc6984841a387142780d099a945b0af0e4b (patch)
tree30895f449c95802991c2e30e04f720e093d4885a /src/mesa/program/ir_to_mesa.cpp
parent51c65a4c48733da4bc551c657b14314242ff0c4b (diff)
program: Remove extra reference_program()
It was already done in get_mesa_program() Signed-off-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/program/ir_to_mesa.cpp')
-rw-r--r--src/mesa/program/ir_to_mesa.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp
index 495048d4bfc..4db62504ac7 100644
--- a/src/mesa/program/ir_to_mesa.cpp
+++ b/src/mesa/program/ir_to_mesa.cpp
@@ -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)) {