meta: Use the DrawBuffer's stencil size
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 4 Mar 2010 01:20:27 +0000 (17:20 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Sat, 6 Mar 2010 00:04:59 +0000 (16:04 -0800)
commit77fc3ef9116fae6b8b53cda78d97c4ff1ec5c171
tree7d63f7b91ad6bb2f46391fa1f0e1be777a789ab0
parent66c0abba6ba89d326555389d9539894402303286
meta: Use the DrawBuffer's stencil size

Previously the code was erroneously using the stencil size of the
context instead of the stencil size of the DrawBuffer.  With FBOs
these may be different.  As a result, clearing the stencil buffer of
an FBO bound to a context that doesn't have stencil would fail.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/common/meta.c