diff options
author | Eric Anholt <eric@anholt.net> | 2009-03-07 23:22:54 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2009-03-09 12:51:29 -0700 |
commit | dc12c4b3eb297b2f225409eacf1f3cd521453ab6 (patch) | |
tree | b1b113b4d2cf3e6ae2810c2f27216eaa502c1e8f /src | |
parent | 646e12a9783d1d48ef21841f0909287a876731a4 (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.
Diffstat (limited to 'src')
-rw-r--r-- | src/i830_dri.c | 2 |
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); |