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

This commit is contained in:
H. Verbeet 2006-11-27 20:51:07 +01:00 committed by Alexandre Julliard
parent 533dcbf170
commit 9c1a61b6e6
1 changed files with 4 additions and 0 deletions

View File

@ -566,6 +566,10 @@ static ULONG WINAPI IWineD3DDeviceImpl_Release(IWineD3DDevice *iface) {
TRACE("(%p) : Releasing from %d\n", This, refCount + 1); TRACE("(%p) : Releasing from %d\n", This, refCount + 1);
if (!refCount) { if (!refCount) {
if (This->fbo) {
GL_EXTCALL(glDeleteFramebuffersEXT(1, &This->fbo));
}
/* TODO: Clean up all the surfaces and textures! */ /* TODO: Clean up all the surfaces and textures! */
/* NOTE: You must release the parent if the object was created via a callback /* NOTE: You must release the parent if the object was created via a callback
** ***************************/ ** ***************************/