summaryrefslogtreecommitdiff
path: root/src/qxl_surface.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/qxl_surface.c')
-rw-r--r--src/qxl_surface.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qxl_surface.c b/src/qxl_surface.c
index 5a26ba6..acb614e 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);