From 073c4a6a18e98e2dde114756b5d787b13bb2b7a5 Mon Sep 17 00:00:00 2001 From: Alan Hourihane Date: Mon, 20 Feb 2006 03:22:26 +0000 Subject: [PATCH] Fix a rotation problem when DRI is disabled --- src/i830_rotate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/i830_rotate.c b/src/i830_rotate.c index f60d64fe..364f9696 100644 --- a/src/i830_rotate.c +++ b/src/i830_rotate.c @@ -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