aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/mesa/glapi/glapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'mesalib/src/mesa/glapi/glapi.c')
-rw-r--r--mesalib/src/mesa/glapi/glapi.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/mesalib/src/mesa/glapi/glapi.c b/mesalib/src/mesa/glapi/glapi.c
index 13de594aa..b913dc254 100644
--- a/mesalib/src/mesa/glapi/glapi.c
+++ b/mesalib/src/mesa/glapi/glapi.c
@@ -120,15 +120,18 @@ static _glthread_TSD ContextTSD; /**< Per-thread context pointer */
#endif /* defined(THREADS) */
+#ifndef INSERVER
PUBLIC struct _glapi_table *_glapi_Dispatch = (struct _glapi_table *) __glapi_noop_table;
PUBLIC void *_glapi_Context = NULL;
+#endif
#endif /* defined(GLX_USE_TLS) */
/*@}*/
+#ifndef INSERVER
#if defined(THREADS) && !defined(GLX_USE_TLS)
void
@@ -159,7 +162,6 @@ _glthread_DECLARE_STATIC_MUTEX(ThreadCheckMutex);
#define CHECK_MULTITHREAD_LOCK() _glthread_LOCK_MUTEX(ThreadCheckMutex)
#define CHECK_MULTITHREAD_UNLOCK() _glthread_UNLOCK_MUTEX(ThreadCheckMutex)
#endif
-
/**
* We should call this periodically from a function such as glXMakeCurrent
* in order to test if multiple threads are being used.
@@ -187,7 +189,6 @@ _glapi_check_multithread(void)
}
CHECK_MULTITHREAD_UNLOCK();
}
-
#else
void
@@ -201,6 +202,8 @@ _glapi_check_multithread(void) { }
#endif
+#endif /* INSERVER */
+
/**