Only erase curMode in i830DisableUnusedFunctions when the CRTC is disabled.

This bug resulted in broken xinerama, among other issues.
This commit is contained in:
Eric Anholt 2006-12-19 12:49:55 -08:00
parent 3b5703c7fa
commit ff1223142a
1 changed files with 2 additions and 2 deletions

View File

@ -987,9 +987,9 @@ i830DisableUnusedFunctions(ScrnInfoPtr pScrn)
xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Disabling CRTC %s\n",
pipe_name);
crtc->funcs->dpms(crtc, DPMSModeOff);
}
memset(&crtc->curMode, 0, sizeof(crtc->curMode));
memset(&crtc->curMode, 0, sizeof(crtc->curMode));
}
}
}