From: Brian Date: Mon, 13 Aug 2007 21:21:01 +0000 (-0600) Subject: check if we have a zbuf before enabling depth_test stage X-Git-Tag: android-x86-1.6~16^2~1465^2~390^2~4339 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=d46779103b38aeab61701759ed7a0b30cc71c0ef;p=android-x86%2Fexternal-mesa.git check if we have a zbuf before enabling depth_test stage --- 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; }