summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2009-03-07 23:22:54 -0800
committerEric Anholt <eric@anholt.net>2009-03-09 12:51:29 -0700
commitdc12c4b3eb297b2f225409eacf1f3cd521453ab6 (patch)
treeb1b113b4d2cf3e6ae2810c2f27216eaa502c1e8f
parent646e12a9783d1d48ef21841f0909287a876731a4 (diff)
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.
-rw-r--r--src/i830_dri.c2
1 files changed, 1 insertions, 1 deletions
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);