aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/hw/xwin/glx/glthunk.c
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server/hw/xwin/glx/glthunk.c')
-rw-r--r--xorg-server/hw/xwin/glx/glthunk.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/xorg-server/hw/xwin/glx/glthunk.c b/xorg-server/hw/xwin/glx/glthunk.c
index d49fe487c..565b63465 100644
--- a/xorg-server/hw/xwin/glx/glthunk.c
+++ b/xorg-server/hw/xwin/glx/glthunk.c
@@ -38,6 +38,10 @@
#undef GL_ARB_imaging
#undef GL_VERSION_1_3
#include <GL/glext.h>
+#include <glx/glheader.h>
+#include <winmsg.h>
+#ifdef _DEBUG
+#endif
static PROC
glWinResolveHelper(PROC * cache, const char *symbol)
@@ -66,9 +70,15 @@ glWinResolveHelper(PROC * cache, const char *symbol)
return proc;
}
+#ifdef _DEBUG
+#define INCPROCCALLS glWinIndirectProcCalls++;
+#else
+#define INCPROCCALLS
+#endif
+
#define RESOLVE_RET(proctype, symbol, retval) \
static PROC cache = NULL; \
- __stdcall proctype proc = (proctype)glWinResolveHelper(&cache, symbol); \
+ proctype proc = (proctype)glWinResolveHelper(&cache, symbol); \
if (proc == NULL) { \
return retval; \
}