diff options
Diffstat (limited to 'glx/glxdri.c')
-rw-r--r-- | glx/glxdri.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/glx/glxdri.c b/glx/glxdri.c index 9b8b66f0c..b2209c551 100644 --- a/glx/glxdri.c +++ b/glx/glxdri.c @@ -961,7 +961,7 @@ __glXDRIscreenProbe(ScreenPtr pScreen) __GLXDRIscreen *screen; Bool isCapable; size_t buffer_size; - ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum]; + ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen); if (!xf86LoaderCheckSymbol("DRIQueryDirectRenderingCapable") || !DRIQueryDirectRenderingCapable(pScreen, &isCapable) || !isCapable) { |