summaryrefslogtreecommitdiffstats
path: root/src/glx/dri_common.h
diff options
context:
space:
mode:
authorCarl Worth <[email protected]>2012-02-03 16:17:29 -0800
committerCarl Worth <[email protected]>2012-02-08 17:07:53 -0800
commit92bef0bfa121e0e58112ffae352c8ad9e5da6307 (patch)
tree2b1133a16e64ee2090850c7e4b86d577599f19bb /src/glx/dri_common.h
parentc09504c343d904dc8c135c9b7241e8315c134d0f (diff)
dri: Add a CriticalErrorMessageF macro.
Sometimes an error is so sever that we want to print it even when the user hasn't specifically requested debugging by setting LIBGL_DEBUG. Add a CriticalErrorMessageF macro to be used for this case. (The error message can still be slienced with the existing LIBGL_DEBUG=quiet). For critical error messages we also direct the user to set the LIBGL_DEBUG environment variable for more details. Reviewed-by: Eugeni Dodonov <[email protected]>
Diffstat (limited to 'src/glx/dri_common.h')
-rw-r--r--src/glx/dri_common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glx/dri_common.h b/src/glx/dri_common.h
index 3bcdebcc529..f5c7d456ee1 100644
--- a/src/glx/dri_common.h
+++ b/src/glx/dri_common.h
@@ -65,6 +65,8 @@ extern void InfoMessageF(const char *f, ...);
extern void ErrorMessageF(const char *f, ...);
+extern void CriticalErrorMessageF(const char *f, ...);
+
extern void *driOpenDriver(const char *driverName);
extern bool