diff options
author | Brian Paul <[email protected]> | 1999-12-17 17:01:31 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 1999-12-17 17:01:31 +0000 |
commit | 53a36fc0da2b8a904ff82203317d083772acfdad (patch) | |
tree | 07005df89c9ac24c667956d1d91c91289fefc382 | |
parent | 09cb14872e97384838b2442a328e1018fd5b2922 (diff) |
optimized GET_IMMEDIATE for thread safety
-rw-r--r-- | src/mesa/main/context.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/context.h b/src/mesa/main/context.h index 57c209aae9f..540b0a6ff44 100644 --- a/src/mesa/main/context.h +++ b/src/mesa/main/context.h @@ -1,4 +1,4 @@ -/* $Id: context.h,v 1.7 1999/12/17 14:52:37 brianp Exp $ */ +/* $Id: context.h,v 1.8 1999/12/17 17:01:31 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -125,7 +125,7 @@ extern GLcontext *gl_get_current_context(void); #define GET_CURRENT_CONTEXT(C) GLcontext *C = (GLcontext *) (_glapi_ThreadSafe ? _glapi_get_current_context() : _glapi_CurrentContext) -#define GET_IMMEDIATE struct immediate *IM = ((GLcontext *) _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; \ |