diff options
author | Ian Romanick <[email protected]> | 2014-10-20 16:11:38 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2014-10-24 19:54:39 -0700 |
commit | c76cc7bab09acec070117e432069ced04b4d6fa3 (patch) | |
tree | 3afa5be086d945809683dd385be49ccee83f9be4 /src/mesa/main/shaderobj.c | |
parent | cfe195f9016be08cdb6b81a0361e7aa7c9f87c56 (diff) |
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 <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/main/shaderobj.c')
-rw-r--r-- | src/mesa/main/shaderobj.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/main/shaderobj.c b/src/mesa/main/shaderobj.c index e703d42738f..ce9aa098734 100644 --- a/src/mesa/main/shaderobj.c +++ b/src/mesa/main/shaderobj.c @@ -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; } |