From: Pauli Nieminen Date: Tue, 23 Jun 2009 14:43:00 +0000 (+0200) Subject: Fix crash when debug output is enabled and sarea is notset in r200Clear X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4f1e141c116a1c230db7adfd1b70f09d484aa19b;p=mesa.git Fix crash when debug output is enabled and sarea is notset in r200Clear --- diff --git a/src/mesa/drivers/dri/r200/r200_ioctl.c b/src/mesa/drivers/dri/r200/r200_ioctl.c index 0b3398a730e..6560efdca39 100644 --- a/src/mesa/drivers/dri/r200/r200_ioctl.c +++ b/src/mesa/drivers/dri/r200/r200_ioctl.c @@ -196,7 +196,10 @@ static void r200Clear( GLcontext *ctx, GLbitfield mask ) GLuint orig_mask = mask; if ( R200_DEBUG & DEBUG_IOCTL ) { - fprintf( stderr, "r200Clear %x %d\n", mask, rmesa->radeon.sarea->pfCurrentPage); + if (rmesa->radeon.sarea) + fprintf( stderr, "r200Clear %x %d\n", mask, rmesa->radeon.sarea->pfCurrentPage); + else + fprintf( stderr, "r200Clear %x radeon->sarea is NULL\n", mask); } {