mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
shorter error messages when calling a GL function without a bound context (FDO bug 1775)
This commit is contained in:
parent
cb7f212f93
commit
5849e3d353
1 changed files with 7 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue