diff options
author | Alon Levy <alevy@redhat.com> | 2012-07-08 14:05:08 +0300 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2012-07-08 14:05:08 +0300 |
commit | de66207883efc1f32e96907c3e64f17b2bdf6c3e (patch) | |
tree | e36c7476c3ae9174a6f1ad70d4fd1a37b63fda6e /src | |
parent | 6267b1a56f6104409fcb970eddc4ea9606421331 (diff) |
qxl_driver/qxl_switch_mode: destroy is not idempotent
Diffstat (limited to 'src')
-rw-r--r-- | src/qxl_driver.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/qxl_driver.c b/src/qxl_driver.c index a6d7636..e4c477a 100644 --- a/src/qxl_driver.c +++ b/src/qxl_driver.c @@ -701,10 +701,9 @@ qxl_switch_mode(SWITCH_MODE_ARGS_DECL) { qxl_surface_kill (qxl->primary); qxl_surface_cache_sanity_check (qxl->surface_cache); + qxl_io_destroy_primary(qxl); } - qxl_io_destroy_primary(qxl); - qxl->primary = qxl_surface_cache_create_primary (qxl->surface_cache, m); qxl->current_mode = m; qxl->bytes_per_pixel = (qxl->pScrn->bitsPerPixel + 7) / 8; |