From: Joe Wreschnig Date: Wed, 10 Sep 2014 15:40:35 +0000 (+0200) Subject: Disable GPU blacklist via command line options. X-Git-Tag: v1.2~4 X-Git-Url: https://git.yukkurigames.com/?a=commitdiff_plain;h=0e309a67c4614ada4f075db7f730c0be41caa275;p=pwl6.git Disable GPU blacklist via command line options. --- diff --git a/tools/generate-nw b/tools/generate-nw index 61959f2..a249232 100755 --- a/tools/generate-nw +++ b/tools/generate-nw @@ -37,6 +37,7 @@ def main(appdir, version=None): "main": indexes[0], "name": name, "version": version or "0.0.0", + "chromium-args": "--enable-webgl --ignore-gpu-blacklist", "window": { "show": False, "toolbar": False, diff --git a/tools/nw-linux-wrapper b/tools/nw-linux-wrapper index d13e39f..e195611 100755 --- a/tools/nw-linux-wrapper +++ b/tools/nw-linux-wrapper @@ -10,6 +10,7 @@ SELF=$(readlink -f "$0") NWDIR=$(dirname "$SELF")/nw NWBIN=$(command -v "$NWDIR/nw" nw | head -n 1) +NWFLAGS="--enable-webgl --ignore-gpu-blacklist" PACKAGE="$NWDIR/package.nw" if [ ! -x "$NWBIN" ]; then @@ -17,9 +18,9 @@ if [ ! -x "$NWBIN" ]; then exit 127 fi -"$NWBIN" "$@" "$PACKAGE" +"$NWBIN" $NWFLAGS "$@" "$PACKAGE" if [ "$?" = "127" -a -w "$NWBIN" ]; then echo "Applying libudev.so.1 hack." >&2 sed -i 's/udev\.so\.0/udev.so.1/g' "$NWBIN" - "$NWBIN" "$@" "$PACKAGE" + "$NWBIN" $NWFLAGS "$@" "$PACKAGE" fi