From: Brian Paul Date: Wed, 28 Sep 2005 14:20:06 +0000 (+0000) Subject: updated assertions (see bug 4590) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f7a8d8ffbb1f08ed4ffef9759c98d8d7e13b4ef0;p=mesa.git updated assertions (see bug 4590) --- diff --git a/src/mesa/drivers/dri/savage/savage_xmesa.c b/src/mesa/drivers/dri/savage/savage_xmesa.c index bf8ec304f79..53415d535b5 100644 --- a/src/mesa/drivers/dri/savage/savage_xmesa.c +++ b/src/mesa/drivers/dri/savage/savage_xmesa.c @@ -631,6 +631,7 @@ savageCreateBuffer( __DRIscreenPrivate *driScrnPriv, screen->frontOffset, screen->aperturePitch, driDrawPriv); savageSetSpanFunctions(frontRb, mesaVis, float_depth); + assert(frontRb->Base.Data); _mesa_add_renderbuffer(fb, BUFFER_FRONT_LEFT, &frontRb->Base); } @@ -643,6 +644,7 @@ savageCreateBuffer( __DRIscreenPrivate *driScrnPriv, screen->backOffset, screen->aperturePitch, driDrawPriv); savageSetSpanFunctions(backRb, mesaVis, float_depth); + assert(backRb->Base.Data); _mesa_add_renderbuffer(fb, BUFFER_BACK_LEFT, &backRb->Base); } @@ -831,7 +833,9 @@ savageMakeCurrent(__DRIcontextPrivate *driContextPriv, drawBuffer->Attachment[BUFFER_BACK_LEFT].Renderbuffer; assert(frontRb->Base.Data); - assert(backRb->Base.Data); + if (imesa->glCtx->Visual.doubleBufferMode) { + assert(backRb->Base.Data); + } imesa->driReadable = driReadPriv; imesa->driDrawable = driDrawPriv;