Index: radeon_dri.c =================================================================== RCS file: /cvs/mesa/Mesa/src/mesa/drivers/dri/radeon/server/radeon_dri.c,v retrieving revision 1.15 diff -u -r1.15 radeon_dri.c --- radeon_dri.c 9 Dec 2004 00:18:59 -0000 1.15 +++ radeon_dri.c 17 Jan 2005 00:17:25 -0000 @@ -981,14 +981,14 @@ * the clear ioctl to do this, but would need to setup hw state * first. */ - memset((char *)ctx->FBAddress + info->frontOffset, - 0, - info->frontPitch * ctx->cpp * ctx->shared.virtualHeight ); - - memset((char *)ctx->FBAddress + info->backOffset, - 0, - info->backPitch * ctx->cpp * ctx->shared.virtualHeight ); - + { + int i; + for(i=0;ifrontPitch * ctx->cpp * ctx->shared.virtualHeight;i++) + *((char *)ctx->FBAddress + info->frontOffset + i)=0; + + for(i=0;ibackPitch * ctx->cpp * ctx->shared.virtualHeight;i++) + *((char *)ctx->FBAddress + info->backOffset + i)=0; + } /* This is the struct passed to radeon_dri.so for its initialization */ ctx->driverClientMsg = malloc(sizeof(RADEONDRIRec));