aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/glx
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2010-12-23 15:37:12 +0000
committermarha <marha@users.sourceforge.net>2010-12-23 15:37:12 +0000
commitdc91d83bd28d51c1c3fd7b89afc3898958ae818a (patch)
tree0ab829a9e5862fd2ac8a9c882a2a4d02cd845551 /xorg-server/glx
parent62681065583ccb0efbf03863fe8f5c5b37b28f73 (diff)
downloadvcxsrv-dc91d83bd28d51c1c3fd7b89afc3898958ae818a.tar.gz
vcxsrv-dc91d83bd28d51c1c3fd7b89afc3898958ae818a.tar.bz2
vcxsrv-dc91d83bd28d51c1c3fd7b89afc3898958ae818a.zip
Print trace message for unimplemented functions in debug
Diffstat (limited to 'xorg-server/glx')
-rw-r--r--xorg-server/glx/glapi.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/xorg-server/glx/glapi.c b/xorg-server/glx/glapi.c
index 17b7feed8..5bb2e90a0 100644
--- a/xorg-server/glx/glapi.c
+++ b/xorg-server/glx/glapi.c
@@ -126,9 +126,15 @@ warn(void)
#define F NULL
-#define DISPATCH(func, args, msg)
+#ifdef _DEBUG
+#define DISPATCH(func, args, msg) ErrorF msg
+
+#define RETURN_DISPATCH(func, args, msg) ErrorF msg ; return 0
+#else
+#define DISPATCH(func, args, msg)
#define RETURN_DISPATCH(func, args, msg) return 0
+#endif
#define DISPATCH_TABLE_NAME __glapi_noop_table
#define UNUSED_TABLE_NAME __unused_noop_functions
@@ -137,6 +143,9 @@ warn(void)
static GLint NoOpUnused(void)
{
+ #ifdef _DEBUG
+ ErrorF("NoOpUnused\n");
+ #endif
return 0;
}