summaryrefslogtreecommitdiff
path: root/GL/mesa
diff options
context:
space:
mode:
authorAdam Jackson <ajax@nwnk.net>2004-07-26 19:06:04 +0000
committerAdam Jackson <ajax@nwnk.net>2004-07-26 19:06:04 +0000
commit799208dd44a65b18dda97b4843a27a2628f955f4 (patch)
tree4cafbfde85bc8b90db60aad1b11caf097d9bb83c /GL/mesa
parentf15f881727cee9a879bd43be8dc849320f8d3cbd (diff)
Bug #377: Make lib{glx,GLcore,dri} work when compiled as dlloader modules.
Diffstat (limited to 'GL/mesa')
-rw-r--r--GL/mesa/X/xf86glx.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/GL/mesa/X/xf86glx.c b/GL/mesa/X/xf86glx.c
index 905e0cc15..bd8ff7fe0 100644
--- a/GL/mesa/X/xf86glx.c
+++ b/GL/mesa/X/xf86glx.c
@@ -76,7 +76,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* struct. In particular, the contextCreate, pGlxVisual, numVisuals,
* and numUsableVisuals fields must be initialized.
*/
-__GLXscreenInfo __glDDXScreenInfo = {
+static __GLXscreenInfo __glDDXScreenInfo = {
__MESA_screenProbe, /* Must be generic and handle all screens */
__MESA_createContext, /* Substitute screen's createContext routine */
__MESA_createBuffer, /* Substitute screen's createBuffer routine */
@@ -90,13 +90,21 @@ __GLXscreenInfo __glDDXScreenInfo = {
NULL /* WrappedPositionWindow is overwritten */
};
-__GLXextensionInfo __glDDXExtensionInfo = {
+void *__glXglDDXScreenInfo(void) {
+ return &__glDDXScreenInfo;
+}
+
+static __GLXextensionInfo __glDDXExtensionInfo = {
GL_CORE_MESA,
__MESA_resetExtension,
__MESA_initVisuals,
__MESA_setVisualConfigs
};
+void *__glXglDDXExtensionInfo(void) {
+ return &__glDDXExtensionInfo;
+}
+
static __MESA_screen MESAScreens[MAXSCREENS];
static __GLcontext *MESA_CC = NULL;