diff options
author | Eric Anholt <eric@anholt.net> | 2014-05-30 10:39:30 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2014-06-12 21:53:59 -0700 |
commit | a11bbd875f3f90a3d02d727778cb1d3524cf59fd (patch) | |
tree | a641cdd044080e8c3e4c9b0c4fd732fc5bed05f4 | |
parent | 8da1e4e2bf28c3610cdbe1770a57be89578d37f5 (diff) |
glamor: Don't leak a prepare_access_gc() in putimage fallbacks.
It turns out putimage doesn't use the GC tile or stipple anyway, so
there's no need to do this.
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | glamor/glamor_image.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/glamor/glamor_image.c b/glamor/glamor_image.c index 4791d089f..b38b41212 100644 --- a/glamor/glamor_image.c +++ b/glamor/glamor_image.c @@ -88,8 +88,7 @@ static void glamor_put_image_bail(DrawablePtr drawable, GCPtr gc, int depth, int x, int y, int w, int h, int leftPad, int format, char *bits) { - if (glamor_prepare_access(drawable, GLAMOR_ACCESS_RW) && - glamor_prepare_access_gc(gc)) + if (glamor_prepare_access(drawable, GLAMOR_ACCESS_RW)) fbPutImage(drawable, gc, depth, x, y, w, h, leftPad, format, bits); glamor_finish_access(drawable); } |