diff --git a/configuration.c b/configuration.c index 44ca8c52f9..f6e65748f1 100644 --- a/configuration.c +++ b/configuration.c @@ -2368,6 +2368,7 @@ static bool config_load_file(const char *path, bool set_defaults, #endif const char *path_core = NULL; const char *path_config = NULL; + const char *shader_ext = NULL; int bool_settings_size = sizeof(settings->bools) / sizeof(settings->bools.placeholder); int float_settings_size = sizeof(settings->floats) / sizeof(settings->floats.placeholder); int int_settings_size = sizeof(settings->ints) / sizeof(settings->ints.placeholder); @@ -2875,8 +2876,7 @@ static bool config_load_file(const char *path, bool set_defaults, config_read_keybinds_conf(conf); - - const char *shader_ext = path_get_extension(settings->paths.path_shader); + shader_ext = path_get_extension(settings->paths.path_shader); if (!string_is_empty(shader_ext)) {