commit | fbddc75aa2f6542117783b8024f9ebd2f0309e1f | [log] [tgz] |
---|---|---|
author | Brian Paul <brianp@vmware.com> | Tue Sep 29 08:21:54 2009 -0600 |
committer | Brian Paul <brianp@vmware.com> | Tue Sep 29 08:21:54 2009 -0600 |
tree | 9682fbc7cd213fbc17011498defe0007e22d2b46 | |
parent | 6829ef74607fa6af602fa1539b1f084a8c0d356c [diff] |
softpipe: Grab a ref when the fb is set. Nasty bug when the surface is freed and another is allocated right on top of it. The next time we set the fb state SP thinks it's the same surface and doesn't flush, and when the flush eventually happens the surface belongs to a completely different texture. (cherry picked from commit a77226071f6814a53358a5d6caff685889d0e4ec) Conflicts: src/gallium/drivers/softpipe/sp_context.c