summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/dispatch.c
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2004-05-27 00:03:53 +0000
committerIan Romanick <[email protected]>2004-05-27 00:03:53 +0000
commitc1d455f5827e7044dcb316dadc755a6f91299906 (patch)
treeb2963dd582acd88e45226e618d386eb8712ce997 /src/mesa/main/dispatch.c
parent77bbbb3759c83e66f0391651597c400fea2d95e4 (diff)
Convert all calls using _glapi_Dispatch to use the new GL_CALL macro.
Diffstat (limited to 'src/mesa/main/dispatch.c')
-rw-r--r--src/mesa/main/dispatch.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mesa/main/dispatch.c b/src/mesa/main/dispatch.c
index 87dc64f02d9..53376361f7d 100644
--- a/src/mesa/main/dispatch.c
+++ b/src/mesa/main/dispatch.c
@@ -57,25 +57,24 @@
#define NAME(func) gl##func
#endif
-
#if 0 /* Use this to log GL calls to stdout (for DEBUG only!) */
#define F stdout
#define DISPATCH(FUNC, ARGS, MESSAGE) \
fprintf MESSAGE; \
- (_glapi_Dispatch->FUNC) ARGS;
+ GL_CALL(FUNC) ARGS;
#define RETURN_DISPATCH(FUNC, ARGS, MESSAGE) \
fprintf MESSAGE; \
- return (_glapi_Dispatch->FUNC) ARGS
+ return GL_CALL(FUNC) ARGS;
#else
#define DISPATCH(FUNC, ARGS, MESSAGE) \
- (_glapi_Dispatch->FUNC) ARGS;
+ GL_CALL(FUNC) ARGS;
#define RETURN_DISPATCH(FUNC, ARGS, MESSAGE) \
- return (_glapi_Dispatch->FUNC) ARGS
+ return GL_CALL(FUNC) ARGS;
#endif /* logging */