diff options
-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); |