blob: 50033014a7d576d6570a9651e5b6b26948b24264 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- third_party/swiftshader/src/OpenGL/libEGL/Display.cpp.orig 2020-05-13 18:41:54 UTC
+++ third_party/swiftshader/src/OpenGL/libEGL/Display.cpp
@@ -691,7 +691,7 @@ bool Display::isValidWindow(EGLNativeWindowType window
return status != 0;
}
return false;
- #elif defined(__linux__)
+ #elif defined(__linux__) || defined(__FreeBSD__)
return false; // Non X11 linux is headless only
#elif defined(__APPLE__)
return sw::OSX::IsValidWindow(window);
@@ -869,7 +869,7 @@ sw::Format Display::getDisplayFormat() const
{
return sw::FORMAT_X8R8G8B8;
}
- #elif defined(__linux__) // Non X11 linux is headless only
+ #elif defined(__linux__) || defined(__FreeBSD__) // Non X11 linux is headless only
return sw::FORMAT_A8B8G8R8;
#elif defined(__APPLE__)
return sw::FORMAT_A8B8G8R8;
|