wined3d: Cleanup IWineD3DDeviceImpl_UpdateTexture().
commitadf5bb5f6aa51d59aab3813b9c8f063b15def1ca
authorHenri Verbeet <hverbeet@codeweavers.com>
Mon, 19 Oct 2009 08:12:19 +0000 (19 10:12 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 19 Oct 2009 09:45:45 +0000 (19 11:45 +0200)
treefbff0a0234d4e47e0fff5de00cf6042fc73aa40a
parent02772641b2528d666b2d487ce99056346cf23191
wined3d: Cleanup IWineD3DDeviceImpl_UpdateTexture().

The root problem here is that with the original error handling a NULL
dereference occurs (IWineD3DBaseTexture_GetType()) when either the source or
destination texture is NULL. Rewriting the error handling changes the
indentation of almost the entire function though, so this patch ends up
rewriting the entire function.
dlls/wined3d/device.c