This commit is contained in:
twinaphex 2016-04-16 19:44:44 +02:00
parent 0b7ee2fcf7
commit d562bf38cb
3 changed files with 7 additions and 5 deletions

View File

@ -118,7 +118,8 @@ static void gl_cg_set_uniform_parameter(
{
CGparameter location;
cg_shader_data_t *cg_data = (cg_shader_data_t*)data;
struct shader_program_cg_data *shader_data = (struct shader_program_cg_data*)_shader_info_data;
(void)_shader_info_data;
if (!param || !param->enabled)
return;

View File

@ -1057,7 +1057,8 @@ static void gl_glsl_set_uniform_parameter(
{
GLint location = 0;
glsl_shader_data_t *glsl = (glsl_shader_data_t*)data;
struct shader_program_glsl_data *shader_data = (struct shader_program_glsl_data*)shader_info_data;
(void)shader_info_data;
if (!param)
return;

View File

@ -103,16 +103,16 @@ void hlsl_set_proj_matrix(void *data, XMMATRIX rotation_value)
hlsl_data->prg[hlsl_data->active_idx].mvp_val = rotation_value;
}
static void hlsl_uniform_set_parameter(
static void hlsl_set_uniform_parameter(
void *data,
struct uniform_info *param,
void *_shader_info_data,
void *uniform_data)
{
hlsl_shader_data_t *hlsl = (hlsl_shader_data_t*)data;
struct shader_program_hlsl_data *shader_data = (struct shader_program_hlsl_data*)_shader_info_data;
(void)hlsl;
(void)_shader_info_data;
if (!param || !param->enabled)
return;
@ -570,7 +570,7 @@ const shader_backend_t hlsl_backend = {
hlsl_init,
hlsl_deinit,
hlsl_set_params,
hlsl_uniform_set_parameter,
hlsl_set_uniform_parameter,
hlsl_use,
hlsl_num,
hlsl_filter_type,