summaryrefslogtreecommitdiff
path: root/hw/xfree86/modes/xf86DiDGA.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/xfree86/modes/xf86DiDGA.c')
-rw-r--r--hw/xfree86/modes/xf86DiDGA.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/xfree86/modes/xf86DiDGA.c b/hw/xfree86/modes/xf86DiDGA.c
index e72b2ad01..47f3b0d9a 100644
--- a/hw/xfree86/modes/xf86DiDGA.c
+++ b/hw/xfree86/modes/xf86DiDGA.c
@@ -220,5 +220,9 @@ _xf86_di_dga_init_internal (ScreenPtr pScreen)
if (!xf86_dga_get_modes (pScreen))
return FALSE;
+#ifndef DRV_CODE
return DGAInit(pScreen, &xf86_dga_funcs, xf86_config->dga_modes, xf86_config->dga_nmode);
+#else
+ return TRUE;
+#endif
}