wined3d: Pass an IWineD3DResourceImpl pointer to context_resource_unloaded().
This commit is contained in:
parent
e98a0e5bb1
commit
2ceb2a8cdd
|
@ -711,7 +711,8 @@ static void context_detach_fbo_entry(struct wined3d_context *context, struct fbo
|
||||||
entry->attached = FALSE;
|
entry->attached = FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
void context_resource_unloaded(IWineD3DDeviceImpl *device, IWineD3DResource *resource, WINED3DRESOURCETYPE type)
|
void context_resource_unloaded(struct IWineD3DDeviceImpl *device,
|
||||||
|
struct IWineD3DResourceImpl *resource, WINED3DRESOURCETYPE type)
|
||||||
{
|
{
|
||||||
switch (type)
|
switch (type)
|
||||||
{
|
{
|
||||||
|
|
|
@ -125,8 +125,8 @@ void resource_cleanup(struct IWineD3DResourceImpl *resource)
|
||||||
|
|
||||||
void resource_unload(IWineD3DResourceImpl *resource)
|
void resource_unload(IWineD3DResourceImpl *resource)
|
||||||
{
|
{
|
||||||
context_resource_unloaded(resource->resource.device, (IWineD3DResource *)resource,
|
context_resource_unloaded(resource->resource.device,
|
||||||
resource->resource.resourceType);
|
resource, resource->resource.resourceType);
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct private_data *resource_find_private_data(IWineD3DResourceImpl *This, REFGUID tag)
|
static struct private_data *resource_find_private_data(IWineD3DResourceImpl *This, REFGUID tag)
|
||||||
|
|
|
@ -1230,8 +1230,8 @@ DWORD context_get_tls_idx(void) DECLSPEC_HIDDEN;
|
||||||
void context_release(struct wined3d_context *context) DECLSPEC_HIDDEN;
|
void context_release(struct wined3d_context *context) DECLSPEC_HIDDEN;
|
||||||
void context_resource_released(struct IWineD3DDeviceImpl *device,
|
void context_resource_released(struct IWineD3DDeviceImpl *device,
|
||||||
struct IWineD3DResourceImpl *resource, WINED3DRESOURCETYPE type) DECLSPEC_HIDDEN;
|
struct IWineD3DResourceImpl *resource, WINED3DRESOURCETYPE type) DECLSPEC_HIDDEN;
|
||||||
void context_resource_unloaded(IWineD3DDeviceImpl *device,
|
void context_resource_unloaded(struct IWineD3DDeviceImpl *device,
|
||||||
IWineD3DResource *resource, WINED3DRESOURCETYPE type) DECLSPEC_HIDDEN;
|
struct IWineD3DResourceImpl *resource, WINED3DRESOURCETYPE type) DECLSPEC_HIDDEN;
|
||||||
BOOL context_set_current(struct wined3d_context *ctx) DECLSPEC_HIDDEN;
|
BOOL context_set_current(struct wined3d_context *ctx) DECLSPEC_HIDDEN;
|
||||||
void context_set_draw_buffer(struct wined3d_context *context, GLenum buffer) DECLSPEC_HIDDEN;
|
void context_set_draw_buffer(struct wined3d_context *context, GLenum buffer) DECLSPEC_HIDDEN;
|
||||||
void context_set_tls_idx(DWORD idx) DECLSPEC_HIDDEN;
|
void context_set_tls_idx(DWORD idx) DECLSPEC_HIDDEN;
|
||||||
|
|
Loading…
Reference in New Issue