mesa: remove dd_function_table::UseProgram

finally unused

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
Marek Olšák 2016-07-17 20:54:51 +02:00
parent b47839ad83
commit 12aec78993
3 changed files with 0 additions and 10 deletions

View File

@ -785,7 +785,6 @@ struct dd_function_table {
*/
/*@{*/
struct gl_linked_shader *(*NewShader)(gl_shader_stage stage);
void (*UseProgram)(struct gl_context *ctx, struct gl_shader_program *shProg);
/*@}*/
/**

View File

@ -470,9 +470,6 @@ _mesa_bind_pipeline(struct gl_context *ctx,
for (i = 0; i < MESA_SHADER_STAGES; i++)
_mesa_shader_program_init_subroutine_defaults(ctx->_Shader->CurrentProgram[i]);
if (ctx->Driver.UseProgram)
ctx->Driver.UseProgram(ctx, NULL);
}
}

View File

@ -1253,9 +1253,6 @@ _mesa_use_program(struct gl_context *ctx, struct gl_shader_program *shProg)
for (i = 0; i < MESA_SHADER_STAGES; i++)
use_shader_program(ctx, i, shProg, &ctx->Shader);
_mesa_active_program(ctx, shProg, "glUseProgram");
if (ctx->Driver.UseProgram)
ctx->Driver.UseProgram(ctx, shProg);
}
@ -2145,9 +2142,6 @@ _mesa_use_shader_program(struct gl_context *ctx, GLenum type,
{
gl_shader_stage stage = _mesa_shader_enum_to_shader_stage(type);
use_shader_program(ctx, stage, shProg, shTarget);
if (ctx->Driver.UseProgram)
ctx->Driver.UseProgram(ctx, shProg);
}