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.
This commit is contained in:
Eric Anholt 2009-03-07 23:22:54 -08:00
parent 646e12a978
commit dc12c4b3eb
1 changed files with 1 additions and 1 deletions

View File

@ -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);