blob: 3b2664d8e31fc8852cbd328c414a997bb4f6b722 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
Index: src/util/disk_cache_os.c
--- src/util/disk_cache_os.c.orig
+++ src/util/disk_cache_os.c
@@ -861,6 +861,11 @@ disk_cache_generate_cache_dir(void *mem_ctx, const cha
bool
disk_cache_enabled()
{
+#ifdef __OpenBSD__
+ /* default to no disk shader cache to avoid pledge violations in chromium */
+ return NULL;
+#endif
+
/* If running as a users other than the real user disable cache */
if (geteuid() != getuid())
return false;
|