diff mbox

[Bug,27199] Division by Zero error with glDrawRangeElementsEXT()

Message ID 20100319152516.C5158130118@annarchy.freedesktop.org (mailing list archive)
State New, archived
Headers show

Commit Message

bugzilla-daemon@freedesktop.org March 19, 2010, 3:25 p.m. UTC
None
diff mbox

Patch

--- 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;