summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/i830_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/i830_driver.c b/src/i830_driver.c
index 81fd5d0d..580a5d0c 100644
--- a/src/i830_driver.c
+++ b/src/i830_driver.c
@@ -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