summaryrefslogtreecommitdiffstats
path: root/lib/Xconfig/card.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Xconfig/card.pm')
-rw-r--r--lib/Xconfig/card.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Xconfig/card.pm b/lib/Xconfig/card.pm
index db8d19e..ad464d6 100644
--- a/lib/Xconfig/card.pm
+++ b/lib/Xconfig/card.pm
@@ -77,8 +77,9 @@ sub to_raw_X {
#- if we have some special ModulePath, ensure the last one is the standard ModulePath
$raw_X->add_ModulePath(modules_dir()) if $raw_X->get_ModulePaths;
- $raw_X->set_load_module('glx', $card->{Driver} ne 'fbdev'); #- glx for everyone, except fbdev
- $raw_X->set_load_module('dri', $card->{use_DRI_GLX}); #- dri when needed, except proprietary nvidia
+ #- un-disable modules that we previously disabled
+ $raw_X->remove_disable_module('glx');
+ $raw_X->remove_disable_module('dri');
$raw_X->remove_Section('DRI');