Commit d71d1cf7 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

d3d8: COM cleanup for the IDirect3DVolumeTexture8 iface.

parent ec90fcd9
...@@ -378,8 +378,8 @@ HRESULT texture_init(IDirect3DTexture8Impl *texture, IDirect3DDevice8Impl *devic ...@@ -378,8 +378,8 @@ HRESULT texture_init(IDirect3DTexture8Impl *texture, IDirect3DDevice8Impl *devic
*/ */
struct IDirect3DVolumeTexture8Impl struct IDirect3DVolumeTexture8Impl
{ {
const IDirect3DVolumeTexture8Vtbl *lpVtbl; IDirect3DVolumeTexture8 IDirect3DVolumeTexture8_iface;
LONG ref; LONG ref;
IWineD3DBaseTexture *wined3d_texture; IWineD3DBaseTexture *wined3d_texture;
IDirect3DDevice8 *parentDevice; IDirect3DDevice8 *parentDevice;
}; };
......
...@@ -739,7 +739,7 @@ static HRESULT WINAPI IDirect3DDevice8Impl_CreateVolumeTexture(IDirect3DDevice8 ...@@ -739,7 +739,7 @@ static HRESULT WINAPI IDirect3DDevice8Impl_CreateVolumeTexture(IDirect3DDevice8
} }
TRACE("Created volume texture %p.\n", object); TRACE("Created volume texture %p.\n", object);
*texture = (IDirect3DVolumeTexture8 *)object; *texture = &object->IDirect3DVolumeTexture8_iface;
return D3D_OK; return D3D_OK;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment