From 50f0bf51a67c89bf445a682f8fec34c52ff909a8 Mon Sep 17 00:00:00 2001 From: Alan Hourihane Date: Thu, 8 Sep 2005 14:51:40 +0000 Subject: fix another possible crash --- src/i830_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3