Fix a rotation problem when DRI is disabled

This commit is contained in:
Alan Hourihane 2006-02-20 03:22:26 +00:00
parent 7cca2ae73e
commit 073c4a6a18
1 changed files with 2 additions and 2 deletions

View File

@ -253,7 +253,7 @@ I915UpdateRotate (ScreenPtr pScreen,
updateInvarient = TRUE;
#ifdef XF86DRI
if (sarea->ctxOwner != myContext)
if (sarea && sarea->ctxOwner != myContext)
updateInvarient = TRUE;
#endif
@ -485,7 +485,7 @@ I830UpdateRotate (ScreenPtr pScreen,
updateInvarient = TRUE;
#ifdef XF86DRI
if (sarea->ctxOwner != myContext)
if (sarea && sarea->ctxOwner != myContext)
updateInvarient = TRUE;
#endif