diff options
author | Maarten Maathuis <madman2003@gmail.com> | 2011-01-30 14:06:15 +0100 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-02-02 14:53:31 -0800 |
commit | af87f6367ef733d1a4f3cfca4eeb92bfd84c2b6f (patch) | |
tree | 5ec6064cb44c8fcf01fec9f22b2c93b50b09ac70 /exa | |
parent | 648d4fe5172cad33c6f09e05dd3d8d7171ef1a7f (diff) |
exa: Only call driver FinishAccess hook if PrepareAccess hook succeeded.
Reviewed-by: Michel Dänzer <michel@daenzer.net>
Signed-off-by: Maarten Maathuis <madman2003@gmail.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'exa')
-rw-r--r-- | exa/exa.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -421,7 +421,8 @@ exaFinishAccess(DrawablePtr pDrawable, int index) /* We always hide the devPrivate.ptr. */ pPixmap->devPrivate.ptr = NULL; - if (!pExaScr->info->FinishAccess || !exaPixmapHasGpuCopy(pPixmap)) + /* Only call FinishAccess if PrepareAccess was called and succeeded. */ + if (!pExaScr->info->FinishAccess || !pExaScr->access[i].retval) return; if (i >= EXA_PREPARE_AUX_DEST && |