Message ID | 20100319152516.C5158130118@annarchy.freedesktop.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
--- a/src/mesa/drivers/dri/r300/r300_cmdbuf.c +++ b/src/mesa/drivers/dri/r300/r300_cmdbuf.c @@ -424,7 +424,7 @@ static void emit_zb_offset(GLcontext *ctx, struct radeon_sta uint32_t dw = atom->check(ctx, atom); rrb = radeon_get_depthbuffer(&r300->radeon); - if (!rrb) + if (!rrb || (rrb->cpp == 0)) return;