summaryrefslogtreecommitdiff
path: root/mi
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2007-10-14 15:39:21 -0400
committerKristian Høgsberg <krh@redhat.com>2007-10-18 21:03:43 -0400
commit7d74690536b64f7b8e8036507ab7790807349c50 (patch)
tree97c299732f4e7f3bad10142f241b2f085437787d /mi
parentab4bce02a9457dd9c86b774fc74caf3dd6b287ca (diff)
Simplify and clean up GLX visual initialization.
Instead of the fragile setup where we filter the modes common between the DDX generated GLX visuals and the DRI driver generated fbconfigs, we now just take the fbconfigs returned by the DRI driver to be our supported set.
Diffstat (limited to 'mi')
-rw-r--r--mi/miinitext.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/mi/miinitext.c b/mi/miinitext.c
index 0fc6d1521..556bfc84b 100644
--- a/mi/miinitext.c
+++ b/mi/miinitext.c
@@ -347,7 +347,6 @@ extern void DarwinGlxWrapInitVisuals(miInitVisualsProcPtr *);
extern __GLXprovider __glXMesaProvider;
extern void GlxPushProvider(__GLXprovider *impl);
extern void GlxExtensionInit(INITARGS);
-extern void GlxWrapInitVisuals(miInitVisualsProcPtr *);
#endif // INXDARWINAPP
#endif // GLXEXT
#ifdef XF86DRI
@@ -673,9 +672,7 @@ InitVisualWrap()
{
miResetInitVisuals();
#ifdef GLXEXT
-#ifndef __DARWIN__
- GlxWrapInitVisuals(&miInitVisualsProc);
-#else
+#ifdef __DARWIN__
DarwinGlxWrapInitVisuals(&miInitVisualsProc);
#endif
#endif