summaryrefslogtreecommitdiff
path: root/xserver/glamor/glamor_copy.c
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2020-04-13 08:07:01 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2020-04-13 08:07:01 +0000
commit482328525369e54161ccc11c7a2ea4475aaa58fc (patch)
tree0b7b779c3aab9a33bf3ac34cbd75581bbecb9972 /xserver/glamor/glamor_copy.c
parentc6893de69de1189cf7230e18ebfe8ebafb5ff2f0 (diff)
Update to xserver 1.20.8. ok jsg@ robert@
Diffstat (limited to 'xserver/glamor/glamor_copy.c')
-rw-r--r--xserver/glamor/glamor_copy.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/xserver/glamor/glamor_copy.c b/xserver/glamor/glamor_copy.c
index e050c0220..1ab2be6c0 100644
--- a/xserver/glamor/glamor_copy.c
+++ b/xserver/glamor/glamor_copy.c
@@ -221,7 +221,9 @@ glamor_copy_cpu_fbo(DrawablePtr src,
goto bail;
glamor_make_current(glamor_priv);
- glamor_prepare_access(src, GLAMOR_ACCESS_RO);
+
+ if (!glamor_prepare_access(src, GLAMOR_ACCESS_RO))
+ goto bail;
glamor_get_drawable_deltas(dst, dst_pixmap, &dst_xoff, &dst_yoff);
@@ -309,7 +311,9 @@ glamor_copy_fbo_cpu(DrawablePtr src,
goto bail;
glamor_make_current(glamor_priv);
- glamor_prepare_access(dst, GLAMOR_ACCESS_RW);
+
+ if (!glamor_prepare_access(dst, GLAMOR_ACCESS_RW))
+ goto bail;
glamor_get_drawable_deltas(src, src_pixmap, &src_xoff, &src_yoff);