diff options
author | Kristian Høgsberg <[email protected]> | 2008-03-08 19:15:50 -0500 |
---|---|---|
committer | Kristian Høgsberg <[email protected]> | 2008-03-08 19:15:50 -0500 |
commit | a1ea6f6198d80f716936a308cfab235f18a014e1 (patch) | |
tree | 81f3ad6b1c4faf31958b6eca098e2bb4bb113597 /src/glx/x11/glxext.c | |
parent | 425f9ed44e576aef27f7ab98968043f7f180d0fd (diff) |
Convert driCreateScreen and driDestroyScreen to function pointers.
We avoid leaking the symbols and will be able to replace them with
DRI2 implementation later on.
Diffstat (limited to 'src/glx/x11/glxext.c')
-rw-r--r-- | src/glx/x11/glxext.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glx/x11/glxext.c b/src/glx/x11/glxext.c index b4a03e40577..f71c049acd7 100644 --- a/src/glx/x11/glxext.c +++ b/src/glx/x11/glxext.c @@ -349,7 +349,7 @@ static void FreeScreenConfigs(__GLXdisplayPrivate *priv) Xfree((char*) psc->serverGLXexts); #ifdef GLX_DIRECT_RENDERING - driDestroyScreen(psc); + psc->driDestroyScreen(psc); #endif } XFree((char*) priv->screenConfigs); @@ -772,7 +772,7 @@ static Bool AllocAndFetchScreenConfigs(Display *dpy, __GLXdisplayPrivate *priv) psc->scr = i; psc->dpy = dpy; #ifdef GLX_DIRECT_RENDERING - driCreateScreen(psc, i, priv); + (*priv->driDisplay->createScreen)(psc, i, priv); #endif } SyncHandle(); |