diff options
Diffstat (limited to 'src/mesa/glapi')
-rw-r--r-- | src/mesa/glapi/glapi.c | 18 | ||||
-rw-r--r-- | src/mesa/glapi/glapi.h | 8 |
2 files changed, 13 insertions, 13 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 } diff --git a/src/mesa/glapi/glapi.h b/src/mesa/glapi/glapi.h index 93631cac283..2b545b48887 100644 --- a/src/mesa/glapi/glapi.h +++ b/src/mesa/glapi/glapi.h @@ -1,4 +1,4 @@ -/* $Id: glapi.h,v 1.13 2000/01/17 19:28:43 brianp Exp $ */ +/* $Id: glapi.h,v 1.14 2000/01/28 20:17:42 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -34,7 +34,7 @@ struct _glapi_table; -extern void *_glapi_CurrentContext; +extern void *_glapi_Context; extern struct _glapi_table *_glapi_Dispatch; @@ -44,11 +44,11 @@ _glapi_check_multithread(void); extern void -_glapi_set_current_context(void *context); +_glapi_set_context(void *context); extern void * -_glapi_get_current_context(void); +_glapi_get_context(void); extern void |