diff --git a/gfx/video_shader_parse.c b/gfx/video_shader_parse.c index a068796354..2ccbbd2184 100644 --- a/gfx/video_shader_parse.c +++ b/gfx/video_shader_parse.c @@ -500,7 +500,7 @@ bool video_shader_resolve_parameters(config_file_t *conf, /* If that doesn't work, fallback to the old path. * Ideally, we'd get rid of this path sooner or later. */ #endif - file = filestream_open(shader->pass[i].source.path, RFILE_MODE_READ_TEXT, -1); + file = filestream_open(path, RFILE_MODE_READ_TEXT, -1); if (!file) continue;