summaryrefslogtreecommitdiff
path: root/src/glx/x11/glxext.c
diff options
context:
space:
mode:
authorAdam Jackson <ajax@freedesktop.org>2004-12-15 17:18:06 +0000
committerAdam Jackson <ajax@freedesktop.org>2004-12-15 17:18:06 +0000
commit489ccef3982267b0d35c8548921f58d553c25a3a (patch)
treea2119f8246f5a9f84a0969b18a2020f6cf07f0f1 /src/glx/x11/glxext.c
parent5566127701df5c97aca94dd99b066f94943ea969 (diff)
Fix up glx/x11 to work when built with -fvisibility=hidden.
Diffstat (limited to 'src/glx/x11/glxext.c')
-rw-r--r--src/glx/x11/glxext.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/glx/x11/glxext.c b/src/glx/x11/glxext.c
index 5a11c91589..e0de3716ff 100644
--- a/src/glx/x11/glxext.c
+++ b/src/glx/x11/glxext.c
@@ -56,6 +56,7 @@
#endif
#include "glxextensions.h"
#include "glcontextmodes.h"
+#include "glheader.h"
#ifdef GLX_DIRECT_RENDERING
#include <inttypes.h>
@@ -1556,9 +1557,8 @@ static Bool UnbindContextWrapper( Display *dpy, GLXContext gc )
** Make a particular context current.
** NOTE: this is in this file so that it can access dummyContext.
*/
-static Bool MakeContextCurrent(Display *dpy,
- GLXDrawable draw, GLXDrawable read,
- GLXContext gc)
+USED static Bool MakeContextCurrent(Display *dpy, GLXDrawable draw,
+ GLXDrawable read, GLXContext gc)
{
xGLXMakeCurrentReply reply;
GLXContext oldGC;
@@ -1775,16 +1775,17 @@ static Bool MakeContextCurrent(Display *dpy,
}
-Bool GLX_PREFIX(glXMakeCurrent)(Display *dpy, GLXDrawable draw, GLXContext gc)
+PUBLIC Bool GLX_PREFIX(glXMakeCurrent)(Display *dpy, GLXDrawable draw,
+ GLXContext gc)
{
return MakeContextCurrent( dpy, draw, draw, gc );
}
-GLX_ALIAS(Bool, glXMakeCurrentReadSGI,
+PUBLIC GLX_ALIAS(Bool, glXMakeCurrentReadSGI,
(Display *dpy, GLXDrawable d, GLXDrawable r, GLXContext ctx),
(dpy, d, r, ctx), MakeContextCurrent)
-GLX_ALIAS(Bool, glXMakeContextCurrent,
+PUBLIC GLX_ALIAS(Bool, glXMakeContextCurrent,
(Display *dpy, GLXDrawable d, GLXDrawable r, GLXContext ctx),
(dpy, d, r, ctx), MakeContextCurrent)