mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
primus: remove old workaround, fix LD_LIBRARY_PATH
This commit is contained in:
parent
84ab38528b
commit
a1440a679d
@ -14,12 +14,7 @@ let
|
||||
ldPath = makeLibraryPath ([primusLib] ++ optional (primusLib_i686 != null) primusLib_i686);
|
||||
primusrun = writeScript "primusrun"
|
||||
''
|
||||
export LD_LIBRARY_PATH=${ldPath}:\$LD_LIBRARY_PATH
|
||||
# see: https://github.com/amonakov/primus/issues/138
|
||||
# On my system, as of 3.16.6, the intel driver dies when the pixel buffers try to read from the
|
||||
# source memory directly. Setting PRIMUS_UPLOAD causes an indirection through textures which
|
||||
# avoids this issue.
|
||||
export PRIMUS_UPLOAD=1
|
||||
export LD_LIBRARY_PATH=${ldPath}:$LD_LIBRARY_PATH
|
||||
exec "$@"
|
||||
'';
|
||||
in
|
||||
|
Loading…
Reference in New Issue
Block a user