diff options
author | Emil Velikov <[email protected]> | 2015-10-13 11:26:09 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2015-10-15 13:30:52 +0100 |
commit | bcb56c2c69dd1695d7828d831d71c957e7e497c6 (patch) | |
tree | c2ac6d67a12ebdb58197894c1213f75c55408564 /src/mesa/program/program.h | |
parent | 2034bdd46ce757a18fdb3498f6a0232db16522f3 (diff) |
program: convert _mesa_init_gl_program() to take struct gl_program *
Rather than accepting a void pointer, only to down and up cast around
it, convert the function to take the base (struct gl_program) pointer.
Signed-off-by: Emil Velikov <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/program/program.h')
-rw-r--r-- | src/mesa/program/program.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/program/program.h b/src/mesa/program/program.h index 51e10a1708b..24e05974dc3 100644 --- a/src/mesa/program/program.h +++ b/src/mesa/program/program.h @@ -64,7 +64,7 @@ extern void _mesa_set_program_error(struct gl_context *ctx, GLint pos, const char *string); extern struct gl_program * -_mesa_init_gl_program(void *prog, GLenum target, GLuint id); +_mesa_init_gl_program(struct gl_program *prog, GLenum target, GLuint id); extern struct gl_program * _mesa_new_program(struct gl_context *ctx, GLenum target, GLuint id); |