-/* $Id: glapi.c,v 1.43 2000/09/05 20:17:37 brianp Exp $ */
+/* $Id: glapi.c,v 1.44 2000/09/15 19:45:41 brianp Exp $ */
/*
* Mesa 3-D graphics library
#include "glapitable.h"
#include "glthread.h"
-#if defined(TRACE)
+#if defined(GL_MESA_TRACE)
#include "types.h"
#endif
void
_glapi_set_dispatch(struct _glapi_table *dispatch)
{
-#if defined(TRACE)
+#if defined(GL_MESA_TRACE)
GLcontext * ctx;
#endif
#endif
#if defined(THREADS)
-#if defined(TRACE)
+#if defined(GL_MESA_TRACE)
ctx = (GLcontext *)_glthread_GetTSD(&ContextTSD);
if (ctx->TraceCtx->traceEnabled == GL_TRUE) {
_glthread_SetTSD(&DispatchTSD, (void*) ctx->TraceDispatch);
_glapi_Dispatch = NULL;
else
_glapi_Dispatch = dispatch;
-#endif /*TRACE*/
+#endif /*GL_MESA_TRACE*/
#else /*THREADS*/
-#if defined(TRACE)
+#if defined(GL_MESA_TRACE)
ctx = (GLcontext *)_glthread_GetTSD(&ContextTSD);
_glapi_Dispatch = ctx->TraceDispatch;
#else
_glapi_Dispatch = dispatch;
-#endif /*TRACE*/
+#endif /*GL_MESA_TRACE*/
#endif /*THREADS*/
}
}
-#if defined(TRACE)
+#if defined(GL_MESA_TRACE)
struct _glapi_table *
_glapi_get_true_dispatch(void)
{
return ((GLcontext *)_glapi_Context)->CurrentDispatch;
#endif
}
-#endif /* TRACE */
+#endif /* GL_MESA_TRACE */
/*
-/* $Id: glapi.h,v 1.15 2000/09/05 20:17:37 brianp Exp $ */
+/* $Id: glapi.h,v 1.16 2000/09/15 19:45:41 brianp Exp $ */
/*
* Mesa 3-D graphics library
_glapi_get_dispatch(void);
-#if defined(TRACE)
+#if defined(GL_MESA_TRACE)
extern struct _glapi_table *
_glapi_get_true_dispatch(void);
#endif
-/* $Id: context.c,v 1.86 2000/09/14 23:13:23 brianp Exp $ */
+/* $Id: context.c,v 1.87 2000/09/15 19:45:40 brianp Exp $ */
/*
* Mesa 3-D graphics library
#endif
-#if defined(TRACE)
+#if defined(GL_MESA_TRACE)
#include "Trace/tr_context.h"
#include "Trace/tr_wrapper.h"
#endif
_mesa_init_dlist_table(ctx->Save, dispatchSize);
ctx->CurrentDispatch = ctx->Exec;
-#if defined(TRACE)
+#if defined(GL_MESA_TRACE)
ctx->TraceCtx = CALLOC( sizeof(trace_context_t) );
#if 0
/* Brian: do you want to have CreateContext fail here,