summaryrefslogtreecommitdiffstats
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, 5 insertions, 4 deletions
diff --git a/src/mesa/main/dispatch.c b/src/mesa/main/dispatch.c
index 275f2572b90..05c1c36c0d2 100644
--- a/src/mesa/main/dispatch.c
+++ b/src/mesa/main/dispatch.c
@@ -66,19 +66,19 @@
#define F stdout
#define DISPATCH(FUNC, ARGS, MESSAGE) \
fprintf MESSAGE; \
- GL_CALL(FUNC) ARGS;
+ CALL_ ## FUNC(GET_DISPATCH(), ARGS);
#define RETURN_DISPATCH(FUNC, ARGS, MESSAGE) \
fprintf MESSAGE; \
- return GL_CALL(FUNC) ARGS;
+ return CALL_ ## FUNC(GET_DISPATCH(), ARGS);
#else
#define DISPATCH(FUNC, ARGS, MESSAGE) \
- GL_CALL(FUNC) ARGS;
+ CALL_ ## FUNC(GET_DISPATCH(), ARGS);
#define RETURN_DISPATCH(FUNC, ARGS, MESSAGE) \
- return GL_CALL(FUNC) ARGS;
+ return CALL_ ## FUNC(GET_DISPATCH(), ARGS);
#endif /* logging */
@@ -87,6 +87,7 @@
#define GLAPIENTRY
#endif
+#include "dispatch.h"
#include "glapitemp.h"
#endif /* USE_X86_ASM */