summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2005-09-28 14:20:06 +0000
committerBrian Paul <[email protected]>2005-09-28 14:20:06 +0000
commitf7a8d8ffbb1f08ed4ffef9759c98d8d7e13b4ef0 (patch)
treee669952ebbeaf119f0190a66e7e44cc3c791e439 /src/mesa/drivers/dri
parent1ad7b99925e044f82e635f746c1ef2df77f69ac9 (diff)
updated assertions (see bug 4590)
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r--src/mesa/drivers/dri/savage/savage_xmesa.c6
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 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;