summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <anholt@freebsd.org>2004-01-25 05:31:24 +0000
committerEric Anholt <anholt@freebsd.org>2004-01-25 05:31:24 +0000
commit2ec70aa70133190ad31a83114fdb9a218e6aa8e6 (patch)
tree233acbe6ccbb5b2258eec9bee21cfa0e500d3a85
parent01e9cc858ac646b3140d1d85ea9c069bc708fb28 (diff)
Disable GLX visuals code on !GLXEXT, and remove a useless prototype.
-rw-r--r--hw/kdrive/ati/ati_dri.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/kdrive/ati/ati_dri.c b/hw/kdrive/ati/ati_dri.c
index c6da406fe..5bd07916a 100644
--- a/hw/kdrive/ati/ati_dri.c
+++ b/hw/kdrive/ati/ati_dri.c
@@ -46,8 +46,7 @@
# define DRM_PAGE_SIZE 4096
#endif
-void XFree86DRIExtensionInit(void);
-
+#ifdef GLXEXT
/* Initialize the visual configs that are supported by the hardware.
* These are combined with the visual configs that the indirect
* rendering core supports, and the intersection is exported to the
@@ -212,6 +211,7 @@ static Bool ATIInitVisualConfigs(ScreenPtr pScreen)
GlxSetVisualConfigs(numConfigs, pConfigs, (void**)pATIConfigPtrs);
return TRUE;
}
+#endif /* GLXEXT */
static void
ATIDRIInitGARTValues(ScreenPtr pScreen)