From 6bc24c5c0560844e481b76600991665cc076eb2c Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Fri, 5 Aug 2005 19:13:51 +0000 Subject: In order to create the set of available extensions, we have to know if direct-rendering is possible on a given screen. It is not possible to determine this by just looking at driDisplay.private in the display structure. However, it is possible to determine this by looking at driScreen.private in the screen structure. This field is only non-NULL if a DRI driver has been successfully loaded and bootstrapped. Once we get to that point, we know that direct-rendering is at least theoretically possible. This fixes bugzilla #2875. --- src/glx/x11/glxcmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/glx') diff --git a/src/glx/x11/glxcmds.c b/src/glx/x11/glxcmds.c index fbb6e7b3681..093deab3b9b 100644 --- a/src/glx/x11/glxcmds.c +++ b/src/glx/x11/glxcmds.c @@ -1269,7 +1269,7 @@ PUBLIC const char *glXQueryExtensionsString( Display *dpy, int screen ) __glXCalculateUsableExtensions(psc, #ifdef GLX_DIRECT_RENDERING - (priv->driDisplay.private != NULL), + (psc->driScreen.private != NULL), #else GL_FALSE, #endif -- cgit v1.2.3