wined3d: Fix texture creation error handling.
commit2654a148deffa2d09107682474f79984463cd65a
authorHenri Verbeet <hverbeet@codeweavers.com>
Tue, 13 Jan 2009 09:31:57 +0000 (13 10:31 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 13 Jan 2009 14:20:38 +0000 (13 15:20 +0100)
treec3db109f2bd8cac3480f86460e9119fedcb3262e
parente4cfbdd4f7f8594d0ebfcb8658e1a43d218c2da5
wined3d: Fix texture creation error handling.

Doing the levels calculation before the object is created prevents leaking
resources and avoids changing baseTexture.levels after it's been initialized
by basetexture_init().
dlls/wined3d/device.c