fix another possible crash

This commit is contained in:
Alan Hourihane 2005-09-08 14:51:40 +00:00
parent 521e357c18
commit 50f0bf51a6
1 changed files with 1 additions and 1 deletions

View File

@ -5329,7 +5329,7 @@ I830BIOSSwitchMode(int scrnIndex, DisplayModePtr mode, int flags)
DPRINTF(PFX, "I830BIOSSwitchMode: mode == %p\n", mode);
/* Sync the engine before mode switch */
if (!pI830->noAccel)
if (!pI830->noAccel && pI830->AccelInfoRec)
(*pI830->AccelInfoRec->Sync)(pScrn);
#ifndef BINDUNBIND