From f7a8d8ffbb1f08ed4ffef9759c98d8d7e13b4ef0 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 28 Sep 2005 14:20:06 +0000 Subject: updated assertions (see bug 4590) --- src/mesa/drivers/dri/savage/savage_xmesa.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/mesa') diff --git a/src/mesa/drivers/dri/savage/savage_xmesa.c b/src/mesa/drivers/dri/savage/savage_xmesa.c index bf8ec304f7..53415d535b 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; -- cgit v1.2.3