diff options
author | Søren Sandmann Pedersen <ssp@redhat.com> | 2012-01-16 11:11:52 -0500 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@redhat.com> | 2012-03-02 15:12:26 -0500 |
commit | 79744037eb1d6dee81419428a5119e8e289d99d2 (patch) | |
tree | 39914cff2d1d56e0ccb38cad2040fd87a94fa814 | |
parent | ffb52ae5349c886c256a6be59c67a2f0c19f09ac (diff) |
Return NULL from qxl_surface_create() when surfaces are disabled
-rw-r--r-- | src/qxl_surface.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qxl_surface.c b/src/qxl_surface.c index bf91483..ebc21ab 100644 --- a/src/qxl_surface.c +++ b/src/qxl_surface.c @@ -688,6 +688,9 @@ qxl_surface_create (surface_cache_t * cache, { qxl_surface_t *surface; + if (!cache->qxl->enable_surfaces) + return NULL; + if ((bpp & 3) != 0) { ErrorF (" Bad bpp: %d (%d)\n", bpp, bpp & 7); |