summaryrefslogtreecommitdiffstats
path: root/perl-install/Xconfig
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-08-07 11:53:15 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-08-07 11:53:15 +0000
commit70b2d01bf505dc6da579a3f8ed36e1daff862c96 (patch)
tree31f0bbaaeade84405f15d36e433a0ac59d053e76 /perl-install/Xconfig
parent028518ea25b54dd0a58ef73b42e85566c467c64e (diff)
downloaddrakx-backup-do-not-use-70b2d01bf505dc6da579a3f8ed36e1daff862c96.tar
drakx-backup-do-not-use-70b2d01bf505dc6da579a3f8ed36e1daff862c96.tar.gz
drakx-backup-do-not-use-70b2d01bf505dc6da579a3f8ed36e1daff862c96.tar.bz2
drakx-backup-do-not-use-70b2d01bf505dc6da579a3f8ed36e1daff862c96.tar.xz
drakx-backup-do-not-use-70b2d01bf505dc6da579a3f8ed36e1daff862c96.zip
load glx in any case (well except for nvidia proprietary shit)
Diffstat (limited to 'perl-install/Xconfig')
-rw-r--r--perl-install/Xconfig/card.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/perl-install/Xconfig/card.pm b/perl-install/Xconfig/card.pm
index 3279e10c4..f1eed7a0b 100644
--- a/perl-install/Xconfig/card.pm
+++ b/perl-install/Xconfig/card.pm
@@ -83,7 +83,7 @@ sub from_raw_X {
my $card = {
use_UTAH_GLX => int(grep { /glx/ } $raw_X->{xfree3}->get_modules),
- use_DRI_GLX => int(grep { /glx/ } $raw_X->{xfree4}->get_modules),
+ use_DRI_GLX => int(grep { /dri/ } $raw_X->{xfree4}->get_modules),
server => $raw_X->{xfree3_server},
prefer_xf3 => readlink("$::prefix/etc/X11/X") !~ /XFree86/ && !$force_xf4,
%$device,
@@ -103,13 +103,13 @@ sub to_raw_X {
$raw_X->{xfree3}->set_load_module('glx-3.so', $card->{use_UTAH_GLX}); #- glx.so may clash with server version 4.
- $raw_X->{xfree4}->set_load_module($_, $card->{use_DRI_GLX} && !$card->{DRI_GLX_SPECIAL})
- foreach 'dri', 'glx';
+ $raw_X->{xfree4}->set_load_module('glx', !$card->{DRI_GLX_SPECIAL}); #- glx for everyone, except proprietary nvidia
+ $raw_X->{xfree4}->set_load_module('dri', $card->{use_DRI_GLX} && !$card->{DRI_GLX_SPECIAL});
# This loads the NVIDIA GLX extension module.
# IT IS IMPORTANT TO KEEP NAME AS FULL PATH TO libglx.so ELSE
# IT WILL LOAD XFree86 glx module and the server will crash.
- $raw_X->{xfree4}->set_load_module('/usr/X11R6/lib/modules/extensions/libglx.so', $card->{DRI_GLX_SPECIAL});
+ $raw_X->{xfree4}->set_load_module('/usr/X11R6/lib/modules/extensions/libglx.so', $card->{DRI_GLX_SPECIAL});
$raw_X->{xfree4}->remove_Section('DRI');
$raw_X->{xfree4}->add_Section('DRI', { Mode => { val => '0666' } }) if $card->{use_DRI_GLX};