diff options
author | Adam Jackson <ajax@nwnk.net> | 2004-07-26 19:06:04 +0000 |
---|---|---|
committer | Adam Jackson <ajax@nwnk.net> | 2004-07-26 19:06:04 +0000 |
commit | 799208dd44a65b18dda97b4843a27a2628f955f4 (patch) | |
tree | 4cafbfde85bc8b90db60aad1b11caf097d9bb83c /GL/apple | |
parent | f15f881727cee9a879bd43be8dc849320f8d3cbd (diff) |
Bug #377: Make lib{glx,GLcore,dri} work when compiled as dlloader modules.
Diffstat (limited to 'GL/apple')
-rw-r--r-- | GL/apple/indirect.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/GL/apple/indirect.c b/GL/apple/indirect.c index c4d235a47..3f6a5e6d2 100644 --- a/GL/apple/indirect.c +++ b/GL/apple/indirect.c @@ -109,7 +109,7 @@ static void glAquaResetExtension(void); * struct. In particular, the contextCreate, pGlxVisual, numVisuals, * and numUsableVisuals fields must be initialized. */ -__GLXscreenInfo __glDDXScreenInfo = { +static __GLXscreenInfo __glDDXScreenInfo = { glAquaScreenProbe, /* Must be generic and handle all screens */ glAquaCreateContext, /* Substitute screen's createContext routine */ glAquaCreateBuffer, /* Substitute screen's createBuffer routine */ @@ -123,13 +123,21 @@ __GLXscreenInfo __glDDXScreenInfo = { NULL /* WrappedPositionWindow is overwritten */ }; -__GLXextensionInfo __glDDXExtensionInfo = { +void *__glXglDDXScreenInfo(void) { + return &__glDDXScreenInfo; +} + +static __GLXextensionInfo __glDDXExtensionInfo = { GL_CORE_APPLE, glAquaResetExtension, glAquaInitVisuals, glAquaSetVisualConfigs }; +void *__glXglDDXExtensionInfo(void) { + return &__glDDXExtensionInfo; +} + // prototypes static GLboolean glAquaDestroyContext(__GLcontext *gc); |