diff options
author | Brian Paul <[email protected]> | 2004-11-05 18:32:02 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2004-11-05 18:32:02 +0000 |
commit | 5849e3d353d956643dd40a3d5f53c31e79ae8cf0 (patch) | |
tree | 38d8f9e1e67d3675e27b5bf7424f3db4288d4d03 | |
parent | cb7f212f934fcc21f2985b24a87833bb24b224ac (diff) |
shorter error messages when calling a GL function without a bound context (FDO bug 1775)
-rw-r--r-- | src/mesa/glapi/glapi.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/mesa/glapi/glapi.c b/src/mesa/glapi/glapi.c index 0f0add89155..9c488169591 100644 --- a/src/mesa/glapi/glapi.c +++ b/src/mesa/glapi/glapi.c @@ -100,17 +100,15 @@ warn(void) #define F NULL -#define DISPATCH(func, args, msg) \ - if (warn()) { \ - warning_func(NULL, "GL User Error: called without context:"); \ - warning_func msg; \ +#define DISPATCH(func, args, msg) \ + if (warn()) { \ + warning_func(NULL, "GL User Error: called without context: %s", #func); \ } -#define RETURN_DISPATCH(func, args, msg) \ - if (warn()) { \ - warning_func(NULL, "GL User Error: called without context:"); \ - warning_func msg; \ - } \ +#define RETURN_DISPATCH(func, args, msg) \ + if (warn()) { \ + warning_func(NULL, "GL User Error: called without context: %s", #func); \ + } \ return 0 #define DISPATCH_TABLE_NAME __glapi_noop_table |