1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-04 22:20:22 +00:00

vo_gpu_next: create shader cache dir if missing

Failing to do this results in the shader cache not actually ever being
written, ergo no shader caching being done. Oops.
This commit is contained in:
Niklas Haas 2022-01-11 13:09:42 +01:00 committed by Niklas Haas
parent a2b147abc6
commit 9d1f48bda2

View File

@ -1093,6 +1093,7 @@ static char *get_cache_file(struct priv *p)
char *dir = mp_get_user_path(NULL, p->global, opts->shader_cache_dir);
char *file = mp_path_join(NULL, dir, "libplacebo.cache");
mp_mkdirp(dir);
talloc_free(dir);
return file;
}