summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/glx/dri2_glx.c2
-rw-r--r--src/glx/dri_glx.c2
2 files changed, 4 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)
diff --git a/src/glx/dri_glx.c b/src/glx/dri_glx.c
index 0cd7cca74fb..9bfcb0c082a 100644
--- a/src/glx/dri_glx.c
+++ b/src/glx/dri_glx.c
@@ -916,6 +916,8 @@ driCreateScreen(int screen, struct glx_display *priv)
return &psc->base;
cleanup:
+ CriticalErrorMessageF("failed to load driver: %s\n", driverName);
+
if (psc->driver)
dlclose(psc->driver);
glx_screen_cleanup(&psc->base);