summaryrefslogtreecommitdiffstats
path: root/src/mesa/glapi
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2000-09-26 15:27:20 +0000
committerBrian Paul <[email protected]>2000-09-26 15:27:20 +0000
commit3b18a36f210da9d66acd1228d24948cd77c2e81e (patch)
treedd076b43db8581367121ca67e4d8a3e5b5f3e7fe /src/mesa/glapi
parent63c113a31be2de3a53f38aab622565308d9724b9 (diff)
Replaced preprocessor symbol GL_MESA_TRACE with MESA_TRACE.
Changed src/Makefile.X11 to compile Trace sources like other drivers.
Diffstat (limited to 'src/mesa/glapi')
-rw-r--r--src/mesa/glapi/glapi.c27
-rw-r--r--src/mesa/glapi/glapi.h4
2 files changed, 16 insertions, 15 deletions
diff --git a/src/mesa/glapi/glapi.c b/src/mesa/glapi/glapi.c
index bb7c20cdf9f..9b01046ea35 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 e64562ad1ed..f55b0740530 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