bug fix, for legacy systems, they would not have opengl core version

so the test for null had to be revised.
This commit is contained in:
Harald Hope 2017-06-09 10:42:02 -07:00
parent 80fd74c099
commit 03bfd88be7

6
inxi
View file

@ -13023,17 +13023,19 @@ print_graphics_data()
if [[ -z $glx_renderer ]];then if [[ -z $glx_renderer ]];then
glx_renderer='N/A' glx_renderer='N/A'
fi fi
if [[ -z $glx_version || -z $glx_core_version ]];then if [[ -z $glx_version ]];then
glx_version='N/A' glx_version='N/A'
else else
# non free drivers once filtered and cleaned show the same for core and compat # non free drivers once filtered and cleaned show the same for core and compat
if [[ $glx_core_version != $glx_version ]];then if [[ -n $glx_core_version && $glx_core_version != $glx_version ]];then
glx_version=$glx_core_version glx_version=$glx_core_version
if [[ $B_EXTRA_EXTRA_DATA == 'true' ]];then if [[ $B_EXTRA_EXTRA_DATA == 'true' ]];then
if [[ $glx_compat_version_nu != '' ]];then if [[ $glx_compat_version_nu != '' ]];then
glx_version="$glx_version (compat-v$SEP3 $glx_compat_version_nu)" glx_version="$glx_version (compat-v$SEP3 $glx_compat_version_nu)"
fi fi
fi fi
elif [[ -z $glx_core_version ]];then
glx_version='N/A'
fi fi
fi fi