swrast: don't try to do depth testing if there's no depth buffer
authorBrian Paul <brianp@vmware.com>
Thu, 11 Aug 2011 14:52:41 +0000 (08:52 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 11 Aug 2011 14:53:17 +0000 (08:53 -0600)
commit37a64baea87c470a68f9b2582af86783eb3509c4
tree99b2172a7dce479b880ee794a0ef82edeb081046
parente411cd7b0a54d2f9b9f4cda4918aa7742ed5c2a6
swrast: don't try to do depth testing if there's no depth buffer

Fixes piglit hiz-depth-stencil-test-fbo-d0-s8 crash.
See http://bugs.freedesktop.org/show_bug.cgi?id=37907

NOTE: This is a candidate for the 7.11 branch.
src/mesa/swrast/s_stencil.c