H. Verbeet : wined3d: Delete the device's FBO when destroying the device.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Nov 28 06:05:14 CST 2006


Module: wine
Branch: master
Commit: 9c1a61b6e62c0496163cba2e4fc02b11ce7212cf
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=9c1a61b6e62c0496163cba2e4fc02b11ce7212cf

Author: H. Verbeet <hverbeet at gmail.com>
Date:   Mon Nov 27 20:51:07 2006 +0100

wined3d: Delete the device's FBO when destroying the device.

---

 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-cvs mailing list