aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/glamor/glamor_addtraps.c
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server/glamor/glamor_addtraps.c')
-rw-r--r--xorg-server/glamor/glamor_addtraps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xorg-server/glamor/glamor_addtraps.c b/xorg-server/glamor/glamor_addtraps.c
index 655d87e3d..fdc0f4232 100644
--- a/xorg-server/glamor/glamor_addtraps.c
+++ b/xorg-server/glamor/glamor_addtraps.c
@@ -40,8 +40,8 @@ _glamor_add_traps(PicturePtr pPicture,
if (glamor_prepare_access_picture(pPicture, GLAMOR_ACCESS_RW)) {
fbAddTraps(pPicture, x_off, y_off, ntrap, traps);
- glamor_finish_access_picture(pPicture, GLAMOR_ACCESS_RW);
}
+ glamor_finish_access_picture(pPicture);
return TRUE;
}