diff options
author | Carl Worth <[email protected]> | 2012-02-03 16:25:38 -0800 |
---|---|---|
committer | Carl Worth <[email protected]> | 2012-02-08 17:07:53 -0800 |
commit | 6c9af977401ff986964d678f8870eee23c504077 (patch) | |
tree | 0675657cbd806dc31ab824c1055f77b5fe7d9816 /src/glx/dri2_glx.c | |
parent | 92bef0bfa121e0e58112ffae352c8ad9e5da6307 (diff) |
dri: Emit a critical error if a named driver fails to load.
Something has gone wrong if we were asked to load a driver of a
specific name, but it failed to load for some reason. The user really
should be made aware of this, (and instructed to set LIBGL_DEBUG for
more details).
Reviewed-by: Eugeni Dodonov <[email protected]>
Diffstat (limited to 'src/glx/dri2_glx.c')
-rw-r--r-- | src/glx/dri2_glx.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glx/dri2_glx.c b/src/glx/dri2_glx.c index 10b6f525ea2..b09606addde 100644 --- a/src/glx/dri2_glx.c +++ b/src/glx/dri2_glx.c @@ -1135,6 +1135,8 @@ dri2CreateScreen(int screen, struct glx_display * priv) return &psc->base; handle_error: + CriticalErrorMessageF("failed to load driver: %s\n", driverName); + if (configs) glx_config_destroy_list(configs); if (visuals) |