Commit 7f09eb6a authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Pass an IWineD3DDeviceImpl pointer to free_private().

parent 4ba3b64c
......@@ -6514,8 +6514,8 @@ static HRESULT arbfp_blit_alloc(IWineD3DDeviceImpl *device)
}
/* Context activation is done by the caller. */
static void arbfp_blit_free(IWineD3DDevice *iface) {
IWineD3DDeviceImpl *device = (IWineD3DDeviceImpl *) iface;
static void arbfp_blit_free(IWineD3DDeviceImpl *device)
{
const struct wined3d_gl_info *gl_info = &device->adapter->gl_info;
struct arbfp_blit_priv *priv = device->blit_priv;
......
......@@ -2050,7 +2050,7 @@ err_out:
This->stateBlock = NULL;
}
if (This->blit_priv) {
This->blitter->free_private(iface);
This->blitter->free_private(This);
}
if (This->fragment_priv) {
This->frag_pipe->free_private(This);
......@@ -2185,7 +2185,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Uninit3D(IWineD3DDevice *iface,
}
/* Destroy the shader backend. Note that this has to happen after all shaders are destroyed. */
This->blitter->free_private(iface);
This->blitter->free_private(This);
This->frag_pipe->free_private(This);
This->shader_backend->shader_free_private(This);
......@@ -6199,7 +6199,7 @@ static void delete_opengl_contexts(IWineD3DDevice *iface, IWineD3DSwapChainImpl
}
LEAVE_GL();
This->blitter->free_private(iface);
This->blitter->free_private(This);
This->frag_pipe->free_private(This);
This->shader_backend->shader_free_private(This);
destroy_dummy_textures(This, gl_info);
......
......@@ -4734,7 +4734,7 @@ const IWineD3DSurfaceVtbl IWineD3DSurface_Vtbl =
static HRESULT ffp_blit_alloc(IWineD3DDeviceImpl *device) { return WINED3D_OK; }
/* Context activation is done by the caller. */
static void ffp_blit_free(IWineD3DDevice *iface) { }
static void ffp_blit_free(IWineD3DDeviceImpl *device) { }
/* This function is used in case of 8bit paletted textures using GL_EXT_paletted_texture */
/* Context activation is done by the caller. */
......@@ -4871,7 +4871,7 @@ static HRESULT cpu_blit_alloc(IWineD3DDeviceImpl *device)
}
/* Context activation is done by the caller. */
static void cpu_blit_free(IWineD3DDevice *iface)
static void cpu_blit_free(IWineD3DDeviceImpl *device)
{
}
......
......@@ -1176,7 +1176,7 @@ enum blit_operation
struct blit_shader
{
HRESULT (*alloc_private)(IWineD3DDeviceImpl *device);
void (*free_private)(IWineD3DDevice *iface);
void (*free_private)(IWineD3DDeviceImpl *device);
HRESULT (*set_shader)(IWineD3DDevice *iface, IWineD3DSurfaceImpl *surface);
void (*unset_shader)(IWineD3DDevice *iface);
BOOL (*blit_supported)(const struct wined3d_gl_info *gl_info, enum blit_operation blit_op,
......
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