From f6e923b55d63dd5f8c14238668378884c713fdd9 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Thu, 15 Apr 2010 19:21:29 +0200 Subject: [PATCH] wined3d: Remove some dead code from IWineD3DDeviceImpl_Uninit3D(). --- dlls/wined3d/device.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index c3d6a6e8d42..2b4e526a148 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -1862,9 +1862,8 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Uninit3D(IWineD3DDevice *iface, This->stencilBufferTarget = NULL; TRACE("Releasing the render target at %p\n", This->render_targets[0]); - if(IWineD3DSurface_Release(This->render_targets[0]) >0){ - /* This check is a bit silly, it should be in swapchain_release FIXME("(%p) Something's still holding the renderTarget\n",This); */ - } + IWineD3DSurface_Release(This->render_targets[0]); + TRACE("Setting rendertarget to NULL\n"); This->render_targets[0] = NULL;