shorter error messages when calling a GL function without a bound context (FDO bug 1775)
This commit is contained in:
@@ -102,14 +102,12 @@ warn(void)
|
||||
|
||||
#define DISPATCH(func, args, msg) \
|
||||
if (warn()) { \
|
||||
warning_func(NULL, "GL User Error: called without context:"); \
|
||||
warning_func msg; \
|
||||
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; \
|
||||
warning_func(NULL, "GL User Error: called without context: %s", #func); \
|
||||
} \
|
||||
return 0
|
||||
|
||||
|
Reference in New Issue
Block a user