GPU: Disable caching on all systems but macOS. Fixes #509

This commit is contained in:
Dylan Araps 2016-12-07 00:54:37 +11:00
parent 461a5692ac
commit 8f0bb0fcd3
1 changed files with 1 additions and 2 deletions

View File

@ -971,6 +971,7 @@ get_gpu() {
gpu="$(system_profiler SPDisplaysDataType | awk -F': ' '/^\ *Chipset Model:/ {printf $2 ", "}')" gpu="$(system_profiler SPDisplaysDataType | awk -F': ' '/^\ *Chipset Model:/ {printf $2 ", "}')"
gpu="${gpu//'/ $'}" gpu="${gpu//'/ $'}"
gpu="${gpu%,*}" gpu="${gpu%,*}"
cache "gpu" "$gpu"
;; ;;
"iPhone OS") "iPhone OS")
@ -1035,8 +1036,6 @@ get_gpu() {
gpu="${gpu/NVIDIA}" gpu="${gpu/NVIDIA}"
gpu="${gpu/Intel}" gpu="${gpu/Intel}"
fi fi
cache "gpu" "$gpu"
} }
get_memory() { get_memory() {