mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
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.
This commit is contained in:
parent
126c89e35f
commit
6bc24c5c05
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue