summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@fairlite.demon.co.uk>2005-09-08 14:51:40 +0000
committerAlan Hourihane <alanh@fairlite.demon.co.uk>2005-09-08 14:51:40 +0000
commit50f0bf51a67c89bf445a682f8fec34c52ff909a8 (patch)
tree8b7f5f6395175e35e3acd9743476f73c1453cc18 /src
parent521e357c1846960b48e83fb97f77025f6f91e638 (diff)
fix another possible crash
Diffstat (limited to 'src')
-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