diff --git a/gfx/drivers_shader/shader_gl_cg.c b/gfx/drivers_shader/shader_gl_cg.c index 9dfaa9ed68..24f927631c 100644 --- a/gfx/drivers_shader/shader_gl_cg.c +++ b/gfx/drivers_shader/shader_gl_cg.c @@ -112,13 +112,12 @@ struct uniform_cg_data static void gl_cg_set_uniform_parameter( void *data, - void *uniform_info_data, + struct uniform_info *param, void *_shader_info_data, void *uniform_data) { CGparameter location; cg_shader_data_t *cg_data = (cg_shader_data_t*)data; - struct uniform_info *param = (struct uniform_info*)uniform_info_data; struct shader_program_cg_data *shader_data = (struct shader_program_cg_data*)_shader_info_data; if (!param || !param->enabled) diff --git a/gfx/drivers_shader/shader_glsl.c b/gfx/drivers_shader/shader_glsl.c index b68ac2c7c2..0c637c1981 100644 --- a/gfx/drivers_shader/shader_glsl.c +++ b/gfx/drivers_shader/shader_glsl.c @@ -1051,13 +1051,12 @@ error: static void gl_glsl_set_uniform_parameter( void *data, - void *uniform_info_data, + struct uniform_info *param, void *shader_info_data, void *uniform_data) { GLint location = 0; glsl_shader_data_t *glsl = (glsl_shader_data_t*)data; - struct uniform_info *param = (struct uniform_info*)uniform_info_data; struct shader_program_glsl_data *shader_data = (struct shader_program_glsl_data*)shader_info_data; if (!param) diff --git a/gfx/drivers_shader/shader_hlsl.c b/gfx/drivers_shader/shader_hlsl.c index 28cc3a71f4..d033df3f5b 100644 --- a/gfx/drivers_shader/shader_hlsl.c +++ b/gfx/drivers_shader/shader_hlsl.c @@ -105,12 +105,11 @@ void hlsl_set_proj_matrix(void *data, XMMATRIX rotation_value) static void hlsl_uniform_set_parameter( void *data, - void *uniform_info_data, + struct uniform_info *param, void *_shader_info_data, void *uniform_data) { hlsl_shader_data_t *hlsl = (hlsl_shader_data_t*)data; - struct uniform_info *param = (struct uniform_info*)uniform_info_data; struct shader_program_hlsl_data *shader_data = (struct shader_program_hlsl_data*)_shader_info_data; (void)hlsl; diff --git a/gfx/drivers_shader/shader_null.c b/gfx/drivers_shader/shader_null.c index e57623dc96..971348463f 100644 --- a/gfx/drivers_shader/shader_null.c +++ b/gfx/drivers_shader/shader_null.c @@ -76,7 +76,7 @@ static void shader_null_set_params(void *data, void *shader_data, static void shader_null_set_uniform_parameter( void *data, - void *uniform_info_data, + struct uniform_info *param, void *shader_info_data, void *uniform_data) { diff --git a/gfx/video_shader_driver.h b/gfx/video_shader_driver.h index 92e76dd3f3..c355bdc52f 100644 --- a/gfx/video_shader_driver.h +++ b/gfx/video_shader_driver.h @@ -163,7 +163,7 @@ typedef struct shader_backend const void *prev_info, const void *feedback_info, const void *fbo_info, unsigned fbo_info_cnt); - void (*set_uniform_parameter)(void *data, void *uniform_info_data, + void (*set_uniform_parameter)(void *data, struct uniform_info *param, void *shader_info_data, void *uniform_data); bool (*compile_program)(void *data, unsigned idx, void *program_data, struct shader_program_info *program_info);