diff options
-rw-r--r-- | src/nv_driver.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nv_driver.c b/src/nv_driver.c index 4b07505..8ab76f6 100644 --- a/src/nv_driver.c +++ b/src/nv_driver.c @@ -816,7 +816,10 @@ NVProbe(DriverPtr drv, int flags) Bool NVSwitchMode(int scrnIndex, DisplayModePtr mode, int flags) { - return NVModeInit(xf86Screens[scrnIndex], mode); + ScrnInfoPtr pScrn = xf86Screens[scrnIndex]; + + NVSync(pScrn); + return NVModeInit(pScrn, mode); } /* @@ -1736,8 +1739,6 @@ NVModeInit(ScrnInfoPtr pScrn, DisplayModePtr mode) NVPtr pNv = NVPTR(pScrn); NVRegPtr nvReg; - NVSync(pScrn); - /* Initialise the ModeReg values */ if (!vgaHWInit(pScrn, mode)) return FALSE; |