summaryrefslogtreecommitdiff
path: root/src/mesa/glapi/glapi.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2000-01-28 20:17:42 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2000-01-28 20:17:42 +0000
commitf9b97d95f9bf9286107586d6afdadae74bb94d36 (patch)
tree4fa4c2845f5944c4bf8d41981ea297c736f2e4f2 /src/mesa/glapi/glapi.c
parent9f94399cf331b5b81ef5dee86b0ef02d131337c6 (diff)
renamed _glapi_CurrentContext to _glapi_Context
Diffstat (limited to 'src/mesa/glapi/glapi.c')
-rw-r--r--src/mesa/glapi/glapi.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mesa/glapi/glapi.c b/src/mesa/glapi/glapi.c
index a50602cbdb..563bfaefc9 100644
--- a/src/mesa/glapi/glapi.c
+++ b/src/mesa/glapi/glapi.c
@@ -1,4 +1,4 @@
-/* $Id: glapi.c,v 1.28 2000/01/28 19:03:33 brianp Exp $ */
+/* $Id: glapi.c,v 1.29 2000/01/28 20:17:42 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -58,7 +58,7 @@
struct _glapi_table *_glapi_Dispatch = &__glapi_noop_table;
/* Used when thread safety disabled */
-void *_glapi_CurrentContext = NULL;
+void *_glapi_Context = NULL;
#if defined(THREADS)
@@ -127,16 +127,16 @@ _glapi_check_multithread(void)
* void from the real context pointer type.
*/
void
-_glapi_set_current_context(void *context)
+_glapi_set_context(void *context)
{
#if defined(THREADS)
_glthread_SetTSD(&ContextTSD, context, context_thread_init);
if (ThreadSafe)
- _glapi_CurrentContext = NULL;
+ _glapi_Context = NULL;
else
- _glapi_CurrentContext = context;
+ _glapi_Context = context;
#else
- _glapi_CurrentContext = context;
+ _glapi_Context = context;
#endif
}
@@ -148,17 +148,17 @@ _glapi_set_current_context(void *context)
* void to the real context pointer type.
*/
void *
-_glapi_get_current_context(void)
+_glapi_get_context(void)
{
#if defined(THREADS)
if (ThreadSafe) {
return _glthread_GetTSD(&ContextTSD);
}
else {
- return _glapi_CurrentContext;
+ return _glapi_Context;
}
#else
- return _glapi_CurrentContext;
+ return _glapi_Context;
#endif
}