sci-chemistry/xcrysden: disable OpenGL accumulation buffer

By default XCrySDen uses ToGL to request an OpenGL accumulation buffer,
which often causes problems (i.e., failing to launch at all) when
running under XWayland.

Signed-off-by: Patrick J. Taylor <patrick.joseph.taylor@gmail.com>
This commit is contained in:
Patrick J. Taylor committed 2026-07-31 13:17:57 +01:00
1 parent cffda9c2f5
commit f1d930df96
2 files changed
+16

No files matched your search

@@ -0,0 +1,15 @@
Disable OpenGL accumulation buffer for XWayland compatibility
diff --git a/Tcl/custom-definitions b/Tcl/custom-definitions
index 5267760..1221749 100644
--- a/Tcl/custom-definitions
+++ b/Tcl/custom-definitions
@@ -18,7 +18,7 @@
# $XCRYSDEN_TOPDIR/Tcl/toglOpt.tcl
# ------------------------------------------------------------------------
-#set toglOpt(accum) false
+set toglOpt(accum) false
#set toglOpt(stereo) none
@@ -35,6 +35,7 @@ PATCHES=(
"${FILESDIR}/${P}-Togl-lib.patch"
"${FILESDIR}/${P}-wrapper-paths.patch"
"${FILESDIR}/${P}-c23.patch"
"${FILESDIR}/${P}-disable-accum-buffer.patch"
)
src_prepare() {