From d46779103b38aeab61701759ed7a0b30cc71c0ef Mon Sep 17 00:00:00 2001 From: Brian Date: Mon, 13 Aug 2007 15:21:01 -0600 Subject: [PATCH] check if we have a zbuf before enabling depth_test stage --- src/mesa/pipe/softpipe/sp_quad.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mesa/pipe/softpipe/sp_quad.c b/src/mesa/pipe/softpipe/sp_quad.c index 0053b16e683..0f0736479f2 100644 --- a/src/mesa/pipe/softpipe/sp_quad.c +++ b/src/mesa/pipe/softpipe/sp_quad.c @@ -48,7 +48,8 @@ sp_build_quad_pipeline(struct softpipe_context *sp) sp->quad.stencil_test->next = sp->quad.first; sp->quad.first = sp->quad.stencil_test; } - else if (sp->depth_test.enabled) { + else if (sp->depth_test.enabled && + sp->framebuffer.zbuf) { sp->quad.depth_test->next = sp->quad.first; sp->quad.first = sp->quad.depth_test; } -- 2.30.2