Henri Verbeet : wined3d: Release the previous render target only after replacing it in IWineD3DDeviceImpl_SetRenderTarget ().