mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 17:30:20 +01:00
mesa: Make _mesa_init_shader_program static
Since a couple commits ago, there is only one caller, and that caller is in the same file. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
cfe195f901
commit
c76cc7bab0
2 changed files with 3 additions and 6 deletions
|
|
@ -235,8 +235,8 @@ _mesa_reference_shader_program(struct gl_context *ctx,
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
_mesa_init_shader_program(struct gl_shader_program *prog)
|
||||
static void
|
||||
init_shader_program(struct gl_shader_program *prog)
|
||||
{
|
||||
prog->Type = GL_SHADER_PROGRAM_MESA;
|
||||
prog->RefCount = 1;
|
||||
|
|
@ -267,7 +267,7 @@ _mesa_new_shader_program(struct gl_context *ctx, GLuint name)
|
|||
shProg = rzalloc(NULL, struct gl_shader_program);
|
||||
if (shProg) {
|
||||
shProg->Name = name;
|
||||
_mesa_init_shader_program(shProg);
|
||||
init_shader_program(shProg);
|
||||
}
|
||||
return shProg;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -71,9 +71,6 @@ _mesa_init_shader(struct gl_context *ctx, struct gl_shader *shader);
|
|||
extern struct gl_shader *
|
||||
_mesa_new_shader(struct gl_context *ctx, GLuint name, GLenum type);
|
||||
|
||||
extern void
|
||||
_mesa_init_shader_program(struct gl_shader_program *prog);
|
||||
|
||||
extern struct gl_shader_program *
|
||||
_mesa_lookup_shader_program(struct gl_context *ctx, GLuint name);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue