[7/8] wined3d: Delete the device's FBO when destroying the device

H. Verbeet hverbeet at gmail.com
Mon Nov 27 13:51:07 CST 2006


Changelog:
  - Delete the device's FBO when destroying the device
-------------- next part --------------
---

 dlls/wined3d/device.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 340a0a5..f06b9cb 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -566,6 +566,10 @@ static ULONG WINAPI IWineD3DDeviceImpl_R
     TRACE("(%p) : Releasing from %d\n", This, refCount + 1);
 
     if (!refCount) {
+        if (This->fbo) {
+            GL_EXTCALL(glDeleteFramebuffersEXT(1, &This->fbo));
+        }
+
         /* TODO: Clean up all the surfaces and textures! */
         /* NOTE: You must release the parent if the object was created via a callback
         ** ***************************/


More information about the wine-patches mailing list