Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/optirun.c
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,11 @@ static int run_primus(int argc, char **argv) {

/* primus starts the X server when needed, fixes long-standing fork issue */
setenv("BUMBLEBEE_SOCKET", bb_config.socket_path, 1);


/* primus needs this variable workaround for libglvnd enabled mesa */

setenv("__GLVND_DISALLOW_PATCHING", "1", 0);

/* set LD_LIBRARY_PATH to primus_ld_path plus ld_path plus current LD_LIBRARY_PATH */
setenv("PRIMUS_DISPLAY", bb_config.x_display, 0);
char *ldpath_cur = getenv("LD_LIBRARY_PATH");
Expand Down