diff options
author | Alon Levy <alevy@redhat.com> | 2012-05-23 21:23:09 +0300 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@gmail.com> | 2012-07-15 19:12:07 +0200 |
commit | 5d78c4cac24ad3830dba1900d5d879551dcbb407 (patch) | |
tree | 3b7504c9899784892961bface00ed1b6d58b1718 /src | |
parent | f246a251f88dab6a9db83e2d8bbd699e29950459 (diff) |
qxl_screen_init: move uxa_resources_init down to after qxl_switch_mode has run
Diffstat (limited to 'src')
-rw-r--r-- | src/qxl_driver.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/qxl_driver.c b/src/qxl_driver.c index 2b0d567..b0967dc 100644 --- a/src/qxl_driver.c +++ b/src/qxl_driver.c @@ -1207,13 +1207,6 @@ qxl_screen_init(SCREEN_INIT_ARGS_DECL) if (!miCreateDefColormap(pScreen)) goto out; - /* Note: this must be done after DamageSetup() because it calls - * _dixInitPrivates. And if that has been called, DamageSetup() - * will assert. - */ - if (!uxa_resources_init (pScreen)) - return FALSE; - qxl->create_screen_resources = pScreen->CreateScreenResources; pScreen->CreateScreenResources = qxl_create_screen_resources; @@ -1229,6 +1222,12 @@ qxl_screen_init(SCREEN_INIT_ARGS_DECL) qxl_switch_mode(SWITCH_MODE_ARGS(pScrn, pScrn->currentMode)); + /* Note: this must be done after DamageSetup() because it calls + * _dixInitPrivates. And if that has been called, DamageSetup() + * will assert. + */ + if (!uxa_resources_init (pScreen)) + return FALSE; CHECK_POINT(); return TRUE; |