blob: dddfebca3fe2e9eb17fcda4d76a9f0db5bc591a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
$OpenBSD$
Index: src/util/disk_cache_os.c
--- src/util/disk_cache_os.c.orig
+++ src/util/disk_cache_os.c
@@ -772,6 +772,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;
|