From dc12c4b3eb297b2f225409eacf1f3cd521453ab6 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Sat, 7 Mar 2009 23:22:54 -0800 Subject: [PATCH] Flip the update_dri_buffers test around to only run when DRI1 is active. Fixes segfaults at startup with DRI2 and load detection, or with DRI disabled entirely. --- src/i830_dri.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/i830_dri.c b/src/i830_dri.c index f61c5640..6a324929 100644 --- a/src/i830_dri.c +++ b/src/i830_dri.c @@ -1448,7 +1448,7 @@ i830_update_dri_buffers(ScrnInfoPtr pScrn) drmI830Sarea *sarea; Bool success; - if (pI830->directRenderingType == DRI_DRI2) + if (pI830->directRenderingType != DRI_XF86DRI) return TRUE; sarea = (drmI830Sarea *) DRIGetSAREAPrivate(pScreen);