aboutsummaryrefslogtreecommitdiffstats
path: root/src/glx/glxext.c
diff options
context:
space:
mode:
authorKristian Høgsberg <[email protected]>2010-07-28 16:40:43 -0400
committerKristian Høgsberg <[email protected]>2010-07-28 16:45:25 -0400
commit6849916170c0275c13510251a7b217c20f2b993e (patch)
tree92e30d9c779f14ca6b0525e7040f399f31f7394d /src/glx/glxext.c
parentc491e585e43d48a2aeec96ccc4008da6c443fb42 (diff)
glx: Split indirect and applegl implementations into different files
Diffstat (limited to 'src/glx/glxext.c')
-rw-r--r--src/glx/glxext.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/glx/glxext.c b/src/glx/glxext.c
index e48c4c289c9..c227215d322 100644
--- a/src/glx/glxext.c
+++ b/src/glx/glxext.c
@@ -772,6 +772,10 @@ AllocAndFetchScreenConfigs(Display * dpy, struct glx_display * priv)
if (psc == NULL && priv->driswDisplay)
psc = (*priv->driswDisplay->createScreen) (i, priv);
#endif
+#if defined(GLX_USE_APPLEGL)
+ if (psc == NULL && priv->appleglDisplay)
+ psc = (*priv->appleglDisplay->createScreen) (i, priv);
+#endif
if (psc == NULL)
psc = indirect_create_screen(i, priv);
priv->screens[i] = psc;
@@ -853,7 +857,7 @@ __glXInitialize(Display * dpy)
#endif
#ifdef GLX_USE_APPLEGL
- if (apple_init_glx(dpy)) {
+ if (!applegl_create_display(dpyPriv)) {
Xfree(dpyPriv);
return NULL;
}