Commit e6e2d31
committed
🐛 Plotting: fix XCrySDen OpenGL initialisation in VMs
XCrySDen fails to start in VirtualBox VMs with the error "Couldn't configure togl
widget". The root cause is that XCrySDen requests an OpenGL accumulation buffer by
default, which is not supported by virtual GPUs (SVGA3D, llvmpipe). This causes the
togl widget to fail during context creation, even when GLX and Mesa are properly set up.
The fix is to disable the accumulation buffer in XCrySDen's custom-definitions file
by setting `toglOpt(accum)` to false. This is done automatically during provisioning
by copying the default custom-definitions file to `~/.xcrysden/` and patching the
relevant line with `lineinfile`.
Note that this issue does not affect bare-metal installations, where real GPUs support
the accumulation buffer without issue.1 parent c463929 commit e6e2d31
1 file changed
+25
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
14 | 39 | | |
15 | 40 | | |
16 | 41 | | |
| |||
0 commit comments