summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-08-13 15:21:01 -0600
committerBrian <[email protected]>2007-08-13 15:21:01 -0600
commitd46779103b38aeab61701759ed7a0b30cc71c0ef (patch)
treeed05ec9bb738fcb365c518723d4ee76e73c6f4d4 /src
parent8cc668a4a8d67af21af6883e18fe7423f28999f9 (diff)
check if we have a zbuf before enabling depth_test stage
Diffstat (limited to 'src')
-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 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;
}