Commit 68fd9d2
committed
fix: detect Wine host, use D3D11 on macOS
MacOS doesn't support a cool enough desktop OpenGL version for us to
launch when using the Desktop OpenGL backend of ANGLE.
We now detect the presence of Wine and query it for the host platform
(analogous to `uname`).
On Wine macOS we select D3D11. This platform requires use of libraries
like D3DMetal/GPTK in Kegworks to emulate D3D11 enough.
On Wine Linux we select Desktop OpenGL as D3D11 requires use of DXVK
to function well enough.
On proper Windows we select D3D11 and for any other platforms we don't
indicate any preference for now.1 parent c5b1170 commit 68fd9d2
1 file changed
+23
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
103 | | - | |
| 102 | + | |
104 | 103 | | |
105 | 104 | | |
| 105 | + | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
109 | | - | |
110 | | - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
111 | 119 | | |
112 | | - | |
113 | 120 | | |
114 | 121 | | |
115 | 122 | | |
| |||
121 | 128 | | |
122 | 129 | | |
123 | 130 | | |
124 | | - | |
125 | | - | |
126 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
127 | 141 | | |
128 | 142 | | |
129 | 143 | | |
| |||
0 commit comments