summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2014-10-20 15:03:06 -0700
committerIan Romanick <[email protected]>2014-10-24 19:54:39 -0700
commitcfe195f9016be08cdb6b81a0361e7aa7c9f87c56 (patch)
tree9c8ae4067e4ec9a1067c732a478bbae9daeba3f7
parentedcba62655635e0c1d355e5e3f7c24e895d34005 (diff)
mesa: Remove context parameter from _mesa_init_shader_program
Silences: ../../src/mesa/main/shaderobj.c: In function '_mesa_init_shader_program': ../../src/mesa/main/shaderobj.c:239:46: warning: unused parameter 'ctx' [-Wunused-parameter] For now, this adds a couple other unused parameter warnings, but future patches will clean those up. 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]>
-rw-r--r--src/mesa/main/shaderobj.c4
-rw-r--r--src/mesa/main/shaderobj.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/main/shaderobj.c b/src/mesa/main/shaderobj.c
index 15c736e4fc5..e703d42738f 100644
--- a/src/mesa/main/shaderobj.c
+++ b/src/mesa/main/shaderobj.c
@@ -236,7 +236,7 @@ _mesa_reference_shader_program(struct gl_context *ctx,
}
void
-_mesa_init_shader_program(struct gl_context *ctx, struct gl_shader_program *prog)
+_mesa_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(ctx, shProg);
+ _mesa_init_shader_program(shProg);
}
return shProg;
}
diff --git a/src/mesa/main/shaderobj.h b/src/mesa/main/shaderobj.h
index be1e44e8d5a..6285941b425 100644
--- a/src/mesa/main/shaderobj.h
+++ b/src/mesa/main/shaderobj.h
@@ -72,7 +72,7 @@ extern struct gl_shader *
_mesa_new_shader(struct gl_context *ctx, GLuint name, GLenum type);
extern void
-_mesa_init_shader_program(struct gl_context *ctx, struct gl_shader_program *prog);
+_mesa_init_shader_program(struct gl_shader_program *prog);
extern struct gl_shader_program *
_mesa_lookup_shader_program(struct gl_context *ctx, GLuint name);