blob: 888c476a9108f8bc698b298ef2652bd132589a22 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--- third_party/swiftshader/src/Main/SwiftConfig.cpp.orig 2019-09-09 21:57:01 UTC
+++ third_party/swiftshader/src/Main/SwiftConfig.cpp
@@ -764,7 +764,11 @@ namespace sw
struct stat status;
int lastModified = ini.getInteger("LastModified", "Time", 0);
+#if !defined(__FreeBSD__)
bool noConfig = stat("SwiftShader.ini", &status) != 0;
+#else
+ bool noConfig = false;
+#endif
newConfig = !noConfig && abs((int)status.st_mtime - lastModified) > 1;
if(disableServerOverride)
|