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:
parent
646e12a978
commit
dc12c4b3eb
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue