st/mesa: make st_manager.c set have[Stencil|Depth]Buffer only if bits > 0
authorLuca Barbieri <luca@luca-barbieri.com>
Tue, 23 Mar 2010 16:40:42 +0000 (17:40 +0100)
committerLuca Barbieri <luca@luca-barbieri.com>
Tue, 23 Mar 2010 17:02:51 +0000 (18:02 +0100)
commit9f0e302cc792f21c6523a85c353e053f942cd035
treee27b1640bdb260b9943c60c94155ce42dcafea63
parentfff86eb0aab506fdfe3e956587d453c52ab07730
st/mesa: make st_manager.c set have[Stencil|Depth]Buffer only if bits > 0

Fixes a segfault when clearing a non-existent stencil buffer.
src/mesa/state_tracker/st_manager.c