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/windows | |
parent | f15f881727cee9a879bd43be8dc849320f8d3cbd (diff) |
Bug #377: Make lib{glx,GLcore,dri} work when compiled as dlloader modules.
Diffstat (limited to 'GL/windows')
-rwxr-xr-x | GL/windows/indirect.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/GL/windows/indirect.c b/GL/windows/indirect.c index cee9e6586..11dc0c092 100755 --- a/GL/windows/indirect.c +++ b/GL/windows/indirect.c @@ -172,7 +172,7 @@ static void glWinResetExtension(void); * struct. In particular, the contextCreate, pGlxVisual, numVisuals, * and numUsableVisuals fields must be initialized. */ -__GLXscreenInfo __glDDXScreenInfo = { +static __GLXscreenInfo __glDDXScreenInfo = { glWinScreenProbe, /* Must be generic and handle all screens */ glWinCreateContext, /* Substitute screen's createContext routine */ glWinCreateBuffer, /* Substitute screen's createBuffer routine */ @@ -186,13 +186,21 @@ __GLXscreenInfo __glDDXScreenInfo = { NULL /* WrappedPositionWindow is overwritten */ }; -__GLXextensionInfo __glDDXExtensionInfo = { +void *__glXglDDXScreenInfo(void) { + return &__glDDXScreenInfo; +} + +static __GLXextensionInfo __glDDXExtensionInfo = { GL_CORE_WINDOWS, glWinResetExtension, glWinInitVisuals, glWinSetVisualConfigs }; +void *__glXglDDXExtensionInfo(void) { + return &__glDDXExtensionInfo; +} + /* prototypes */ static GLboolean glWinDestroyContext(__GLcontext *gc); |