diff options
author | Brian Paul <[email protected]> | 2000-01-28 20:17:42 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2000-01-28 20:17:42 +0000 |
commit | f9b97d95f9bf9286107586d6afdadae74bb94d36 (patch) | |
tree | 4fa4c2845f5944c4bf8d41981ea297c736f2e4f2 /src/mesa/glapi/glapi.c | |
parent | 9f94399cf331b5b81ef5dee86b0ef02d131337c6 (diff) |
renamed _glapi_CurrentContext to _glapi_Context
Diffstat (limited to 'src/mesa/glapi/glapi.c')
-rw-r--r-- | src/mesa/glapi/glapi.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mesa/glapi/glapi.c b/src/mesa/glapi/glapi.c index a50602cbdbd..563bfaefc98 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 } |