Use 0 parameter index

This commit is contained in:
twinaphex 2016-08-01 15:43:34 +02:00
parent 1aac393f73
commit 087e378bf7

View File

@ -404,8 +404,7 @@ bool video_shader_resolve_parameters(config_file_t *conf,
struct video_shader *shader)
{
unsigned i;
struct video_shader_parameter *param =
&shader->parameters[shader->num_parameters];
struct video_shader_parameter *param = &shader->parameters[0];
shader->num_parameters = 0;