wined3d: Be more careful when deleting FBOs.
commit4b6887b8e374826156305094ba547b42b5673da5
authorHenri Verbeet <hverbeet@codeweavers.com>
Wed, 3 Sep 2008 14:25:38 +0000 (3 16:25 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 4 Sep 2008 09:14:53 +0000 (4 11:14 +0200)
tree14561c17321d2a20f05768ec549b46f11e9e3e0e
parente078f618eb7c05c3cbec915f69a1d69fd3b35bed
wined3d: Be more careful when deleting FBOs.

Clear all attachments before deleting FBOs. It should be valid to
delete FBOs that still have attachments, but for some reason the
nvidia drivers don't like it. The resulting memory corruption can be
pretty nasty, and this workaround seems clean enough.
dlls/wined3d/context.c
dlls/wined3d/device.c