DRI: Log something if we don't support legacy DRI

If we are called via the legacy DRI interface, and we don't support
legacy DRI (InitScreen is NULL), print a debug message, so it is easy
to see why the driver fails to initialize.

See https://bugs.freedesktop.org/show_bug.cgi?id=40437
This commit is contained in:
Andrew Deason
2011-09-14 18:37:48 +02:00
committed by Michel Dänzer
parent 45e0a7a51d
commit 48510d6856
+3 -1
View File
@@ -816,8 +816,10 @@ driCreateNewScreen(int scrn,
(void) loaderPrivate;
if (driDriverAPI.InitScreen == NULL)
if (driDriverAPI.InitScreen == NULL) {
__driUtilMessage("driver does not support DRI1");
return NULL;
}
psp = calloc(1, sizeof *psp);
if (!psp)