From 9d1f48bda28d2a611713e382e818450f4e3c92e5 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Tue, 11 Jan 2022 13:09:42 +0100 Subject: 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. --- video/out/vo_gpu_next.c | 1 + 1 file changed, 1 insertion(+) (limited to 'video/out') 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; } -- cgit v1.2.3