diff options
author | Brian Paul <[email protected]> | 2000-01-05 04:36:17 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2000-01-05 04:36:17 +0000 |
commit | 26e14d2ea15c12a1534f3a76278f149cd0a6278c (patch) | |
tree | 3e3718600cc36a33ac08d26619608e475652459d /src/mesa/main/context.h | |
parent | 90d9e02f3ac9bda1650caaf37fe5f0e3f4ce01cf (diff) |
removed _glapi_ThreadSafe
Diffstat (limited to 'src/mesa/main/context.h')
-rw-r--r-- | src/mesa/main/context.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/mesa/main/context.h b/src/mesa/main/context.h index 540b0a6ff44..c31f524fccd 100644 --- a/src/mesa/main/context.h +++ b/src/mesa/main/context.h @@ -1,4 +1,4 @@ -/* $Id: context.h,v 1.8 1999/12/17 17:01:31 brianp Exp $ */ +/* $Id: context.h,v 1.9 2000/01/05 04:36:17 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -123,9 +123,10 @@ extern GLcontext *gl_get_current_context(void); */ #ifdef THREADS -#define GET_CURRENT_CONTEXT(C) GLcontext *C = (GLcontext *) (_glapi_ThreadSafe ? _glapi_get_current_context() : _glapi_CurrentContext) +#define GET_CURRENT_CONTEXT(C) GLcontext *C = (GLcontext *) (_glapi_CurrentContext ? _glapi_CurrentContext : _glapi_get_current_context()) + +#define GET_IMMEDIATE struct immediate *IM = ((GLcontext *) (_glapi_CurrentContext ? _glapi_CurrentContext : _glapi_get_current_context()))->input -#define GET_IMMEDIATE struct immediate *IM = ((GLcontext *) (_glapi_ThreadSafe ? _glapi_get_current_context() : _glapi_CurrentContext))->input; #define SET_IMMEDIATE(ctx, im) \ do { \ ctx->input = im; \ @@ -134,8 +135,11 @@ do { \ #else extern struct immediate *CURRENT_INPUT; + #define GET_CURRENT_CONTEXT(C) GLcontext *C = _glapi_CurrentContext + #define GET_IMMEDIATE struct immediate *IM = CURRENT_INPUT + #define SET_IMMEDIATE(ctx, im) \ do { \ ctx->input = im; \ |