mesa: fix some begin/end render-to-texture logic
authorbrian <brian@cvp965.(none)>
Wed, 11 Nov 2009 01:02:03 +0000 (18:02 -0700)
committerbrian <brian@cvp965.(none)>
Wed, 11 Nov 2009 01:09:13 +0000 (18:09 -0700)
commita65b84d9554815af891d793012eba17de80cbfa3
tree57100ae049e1204eb2ac5b75358dd24a03ff0868
parentbc569cd6bee0550c7f83412476b6b39e89c51ac3
mesa: fix some begin/end render-to-texture logic

Before, we weren't aggressive enough in checking for the start or end
of render-to-texture.  In particular, if only the ctx->ReadBuffer had
texture attachments, we were treating that as a render-to-texture case.

This fixes a regression from commit 75bdbdd90b15c8704d87ca195a364ff6a42edbb1
"intel: Don't validate in a texture image used as a render target."
src/mesa/main/fbobject.c