From eeb44e50a2461bb8efb6b38411d603aee8604feb Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 21 Oct 2005 09:40:56 +0000 Subject: simplify (and make it more robust) --- perl-install/Xconfig/card.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/perl-install/Xconfig/card.pm b/perl-install/Xconfig/card.pm index db945cbab..b96ae9807 100644 --- a/perl-install/Xconfig/card.pm +++ b/perl-install/Xconfig/card.pm @@ -63,8 +63,9 @@ sub to_raw_X { $raw_X->get_ServerLayout->{Xinerama} = { commented => !$card->{Xinerama}, Option => 1 } if defined $card->{Xinerama}; - # handle Xorg <-> nvidia switch when packages are installed: - $raw_X->remove_load_module($card->{REMOVE_GLX}) if $card->{REMOVE_GLX}; + # cleanup previous special nvidia libglx + $raw_X->remove_load_module($_) foreach @{$card->{REMOVE_GLX}}; + if ($card->{DRI_GLX_SPECIAL}) { $raw_X->remove_load_module('glx'); # this doesn't duplicate the above glx line # This loads the NVIDIA GLX extension module. @@ -338,7 +339,6 @@ sub install_server { $card->{Driver} = 'nvidia'; $card->{DRI_GLX_SPECIAL} = $libglx; $card->{Options}{IgnoreEDID} = 1; - $card->{REMOVE_GLX} = $old_nvidia_libglx; } } if ($card->{Driver2} eq 'fglrx' && @@ -347,7 +347,7 @@ sub install_server { log::explanations("Using specific ATI fglrx and DRI drivers"); $card->{Driver} = 'fglrx'; } - $card->{REMOVE_GLX} ||= $new_nvidia_libglx; + $card->{REMOVE_GLX} = [ $old_nvidia_libglx, $new_nvidia_libglx ]; libgl_config($card); -- cgit v1.2.1