Only return FALSE when dri_bo_map() fails

Small typo in the previous commit.
This commit is contained in:
Kristian Høgsberg 2009-05-20 12:32:10 -04:00
parent 09beee378c
commit ad2128825b
1 changed files with 3 additions and 2 deletions

View File

@ -514,11 +514,12 @@ i830_uxa_prepare_access (PixmapPtr pixmap, uxa_access_t access)
return FALSE;
}
} else {
if (dri_bo_map(bo, access == UXA_ACCESS_RW) != 0)
if (dri_bo_map(bo, access == UXA_ACCESS_RW) != 0) {
xf86DrvMsg(scrn->scrnIndex, X_WARNING,
"%s: bo map failed\n",
__FUNCTION__);
return FALSE;
return FALSE;
}
}
pixmap->devPrivate.ptr = bo->virtual;
} else { /* or not... */