diff options
author | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2020-07-22 20:02:33 +0200 |
---|---|---|
committer | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2020-07-22 20:02:41 +0200 |
commit | 7bb9e9eced42a011f4aa3e74c7c5f1ff579d2081 (patch) | |
tree | bebd2daff9ffb1cd06ee42db027192e08afebe9e /networking/modem/device-files/disable_modem.sh | |
parent | 7721059d0f2d5bbc68442389c7293674dfd761a2 (diff) | |
download | vendor_replicant-scripts-7bb9e9eced42a011f4aa3e74c7c5f1ff579d2081.tar.gz vendor_replicant-scripts-7bb9e9eced42a011f4aa3e74c7c5f1ff579d2081.tar.bz2 vendor_replicant-scripts-7bb9e9eced42a011f4aa3e74c7c5f1ff579d2081.zip |
graphics: fix user interface
The graphics user interface is the following, according to the help:
Usage: graphics.sh [faster|compatible]
Examples:
graphics.sh faster
|-> Uses Android's libagl
which is faster
but some applications
like icecat won't work
graphics.sh compatible
|-> Uses llvmpipe
which is slower
but more compatible
However the code is still expecting the "libagl" or "llvmpipe" arguments:
graphics()
{
new_renderer="$1" # libagl || llvmpipe
[...]
if [ "${old_renderer}" == "${new_renderer}" ] ; then
[...]
}
This fix the code to by passing the libagl and llvmpipe arguments to the
graphics function as it expects, while keeping the same user interface.
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Diffstat (limited to 'networking/modem/device-files/disable_modem.sh')
0 files changed, 0 insertions, 0 deletions