summaryrefslogtreecommitdiff
path: root/src/nv_driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nv_driver.c')
-rw-r--r--src/nv_driver.c7
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;