From 3b18a36f210da9d66acd1228d24948cd77c2e81e Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 26 Sep 2000 15:27:20 +0000 Subject: Replaced preprocessor symbol GL_MESA_TRACE with MESA_TRACE. Changed src/Makefile.X11 to compile Trace sources like other drivers. --- src/mesa/glapi/glapi.c | 27 ++++++++++++++------------- src/mesa/glapi/glapi.h | 4 ++-- 2 files changed, 16 insertions(+), 15 deletions(-) (limited to 'src/mesa/glapi') diff --git a/src/mesa/glapi/glapi.c b/src/mesa/glapi/glapi.c index bb7c20cdf9..9b01046ea3 100644 --- a/src/mesa/glapi/glapi.c +++ b/src/mesa/glapi/glapi.c @@ -1,4 +1,4 @@ -/* $Id: glapi.c,v 1.44 2000/09/15 19:45:41 brianp Exp $ */ +/* $Id: glapi.c,v 1.45 2000/09/26 15:27:22 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -49,7 +49,7 @@ #include "glapitable.h" #include "glthread.h" -#if defined(GL_MESA_TRACE) +#if defined(MESA_TRACE) #include "types.h" #endif @@ -170,7 +170,7 @@ _glapi_get_context(void) void _glapi_set_dispatch(struct _glapi_table *dispatch) { -#if defined(GL_MESA_TRACE) +#if defined(MESA_TRACE) GLcontext * ctx; #endif @@ -185,35 +185,36 @@ _glapi_set_dispatch(struct _glapi_table *dispatch) #endif #if defined(THREADS) -#if defined(GL_MESA_TRACE) +#if defined(MESA_TRACE) ctx = (GLcontext *)_glthread_GetTSD(&ContextTSD); if (ctx->TraceCtx->traceEnabled == GL_TRUE) { - _glthread_SetTSD(&DispatchTSD, (void*) ctx->TraceDispatch); + _glthread_SetTSD(&DispatchTSD, (void *) ctx->TraceDispatch); if (ThreadSafe) _glapi_Dispatch = NULL; else _glapi_Dispatch = ctx->TraceDispatch; - } else { - _glthread_SetTSD(&DispatchTSD, (void*) dispatch); + } + else { + _glthread_SetTSD(&DispatchTSD, (void *) dispatch); if (ThreadSafe) _glapi_Dispatch = NULL; else _glapi_Dispatch = dispatch; } #else - _glthread_SetTSD(&DispatchTSD, (void*) dispatch); + _glthread_SetTSD(&DispatchTSD, (void *) dispatch); if (ThreadSafe) _glapi_Dispatch = NULL; else _glapi_Dispatch = dispatch; -#endif /*GL_MESA_TRACE*/ +#endif /*MESA_TRACE*/ #else /*THREADS*/ -#if defined(GL_MESA_TRACE) +#if defined(MESA_TRACE) ctx = (GLcontext *)_glthread_GetTSD(&ContextTSD); _glapi_Dispatch = ctx->TraceDispatch; #else _glapi_Dispatch = dispatch; -#endif /*GL_MESA_TRACE*/ +#endif /*MESA_TRACE*/ #endif /*THREADS*/ } @@ -239,7 +240,7 @@ _glapi_get_dispatch(void) } -#if defined(GL_MESA_TRACE) +#if defined(MESA_TRACE) struct _glapi_table * _glapi_get_true_dispatch(void) { @@ -263,7 +264,7 @@ _glapi_get_true_dispatch(void) return ((GLcontext *)_glapi_Context)->CurrentDispatch; #endif } -#endif /* GL_MESA_TRACE */ +#endif /* MESA_TRACE */ /* diff --git a/src/mesa/glapi/glapi.h b/src/mesa/glapi/glapi.h index e64562ad1e..f55b074053 100644 --- a/src/mesa/glapi/glapi.h +++ b/src/mesa/glapi/glapi.h @@ -1,4 +1,4 @@ -/* $Id: glapi.h,v 1.16 2000/09/15 19:45:41 brianp Exp $ */ +/* $Id: glapi.h,v 1.17 2000/09/26 15:27:23 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -59,7 +59,7 @@ extern struct _glapi_table * _glapi_get_dispatch(void); -#if defined(GL_MESA_TRACE) +#if defined(MESA_TRACE) extern struct _glapi_table * _glapi_get_true_dispatch(void); #endif -- cgit v1.2.3