diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2005-09-28 14:20:06 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2005-09-28 14:20:06 +0000 |
commit | f7a8d8ffbb1f08ed4ffef9759c98d8d7e13b4ef0 (patch) | |
tree | e669952ebbeaf119f0190a66e7e44cc3c791e439 /src/mesa | |
parent | 1ad7b99925e044f82e635f746c1ef2df77f69ac9 (diff) |
updated assertions (see bug 4590)
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/savage/savage_xmesa.c | 6 |
1 files changed, 5 insertions, 1 deletions
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; |