diff options
author | Niklas Haas <git@haasn.dev> | 2022-01-11 13:09:42 +0100 |
---|---|---|
committer | Niklas Haas <github-daiK1o@haasn.dev> | 2022-02-03 18:22:14 +0100 |
commit | 9d1f48bda28d2a611713e382e818450f4e3c92e5 (patch) | |
tree | b99faa3efb96452485c73bc08c0623ad1df2e75a /video | |
parent | a2b147abc6e8dbf70f6823158e61db6ac4c511e5 (diff) | |
download | mpv-9d1f48bda28d2a611713e382e818450f4e3c92e5.tar.bz2 mpv-9d1f48bda28d2a611713e382e818450f4e3c92e5.tar.xz |
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.
Diffstat (limited to 'video')
-rw-r--r-- | video/out/vo_gpu_next.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/vo_gpu_next.c b/video/out/vo_gpu_next.c index 8b1dec7f45..599ea758d4 100644 --- a/video/out/vo_gpu_next.c +++ b/video/out/vo_gpu_next.c @@ -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; } |