summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-08-13 15:21:01 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-08-13 15:21:01 -0600
commitd46779103b38aeab61701759ed7a0b30cc71c0ef (patch)
treeed05ec9bb738fcb365c518723d4ee76e73c6f4d4
parent8cc668a4a8d67af21af6883e18fe7423f28999f9 (diff)
check if we have a zbuf before enabling depth_test stage
-rw-r--r--src/mesa/pipe/softpipe/sp_quad.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/pipe/softpipe/sp_quad.c b/src/mesa/pipe/softpipe/sp_quad.c
index 0053b16e68..0f0736479f 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;
}