summaryrefslogtreecommitdiff
path: root/src/mesa/main/dispatch.c
diff options
context:
space:
mode:
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 87dc64f02d..53376361f7 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 */