--- inxi.save 2023-11-07 12:30:16.000000000 +0300 +++ inxi 2023-12-05 19:30:27.469943900 +0300 @@ -16259,9 +16259,15 @@ sub gl_data { } elsif ($working[0] eq 'EGL driver name'){ if (!defined $device){ - $gl->{'egl'}{'platforms'}{$platform}{'egl'}{'driver'} = $working[1]; + if ($platform // '' ){ + $gl->{'egl'}{'platforms'}{$platform}{'egl'}{'driver'} = $working[1]; } + else { + $gl->{'egl'}{'platforms'}{'platform'}{'egl'}{'driver'} = $working[1];} if ($mesa_drivers{$working[1]}){ - $gl->{'egl'}{'platforms'}{$platform}{'egl'}{'hw'} = $mesa_drivers{$working[1]}; + if ($platform // '' ){ + $gl->{'egl'}{'platforms'}{$platform}{'egl'}{'hw'} = $mesa_drivers{$working[1]}; } + else { + $gl->{'egl'}{'platforms'}{'egl'}{'hw'} = $mesa_drivers{$working[1]}; } } } else { @@ -16281,7 +16287,10 @@ sub gl_data { $gl->{'egl'}{'platforms'}{$platform}{$device}{'egl'}{'client-apis'} = [split(/\s+/,$working[1])]; } else { - $gl->{'egl'}{'platforms'}{$platform}{'egl'}{'client-apis'} = [split(/\s+/,$working[1])]; + if ( $platform // '' ) { + $gl->{'egl'}{'platforms'}{$platform}{'egl'}{'client-apis'} = [split(/\s+/,$working[1])]; } + else { + $gl->{'egl'}{'platforms'}{'egl'}{'client-apis'} = [split(/\s+/,$working[1])]; } } } }