blob: 23067f6aec621303291a57706853793138660929 (
plain)
1 From c3ccbb7f6dd00038b1cb328898a29583e3a6c9be Mon Sep 17 00:00:00 2001
2 From: SolarAquarion <shlomochoina@gmail.com>
3 Date: Sun, 19 Feb 2017 16:53:09 -0500
4 Subject: [PATCH] adding workaround for libglvnd
5
6 ---
7 src/optirun.c | 6 +++++-
8 1 file changed, 5 insertions(+), 1 deletion(-)
9
10 diff --git a/src/optirun.c b/src/optirun.c
11 index 65c83d4..ec72057 100644
12 --- a/src/optirun.c
13 +++ b/src/optirun.c
14 @@ -203,7 +203,11 @@ static int run_primus(int argc, char **argv) {
15
16 /* primus starts the X server when needed, fixes long-standing fork issue */
17 setenv("BUMBLEBEE_SOCKET", bb_config.socket_path, 1);
18 -
19 +
20 +/* primus needs this variable workaround for libglvnd enabled mesa */
21 +
22 + setenv("__GLVND_DISALLOW_PATCHING", "1", 0);
23 +
24 /* set LD_LIBRARY_PATH to primus_ld_path plus ld_path plus current LD_LIBRARY_PATH */
25 setenv("PRIMUS_DISPLAY", bb_config.x_display, 0);
26 char *ldpath_cur = getenv("LD_LIBRARY_PATH");
|