Commit 2d9748b1 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Pass an IWineD3DResourceImpl pointer to resource_get_priority().

parent a80749fd
...@@ -785,7 +785,7 @@ static DWORD STDMETHODCALLTYPE buffer_SetPriority(IWineD3DBuffer *iface, DWORD p ...@@ -785,7 +785,7 @@ static DWORD STDMETHODCALLTYPE buffer_SetPriority(IWineD3DBuffer *iface, DWORD p
static DWORD STDMETHODCALLTYPE buffer_GetPriority(IWineD3DBuffer *iface) static DWORD STDMETHODCALLTYPE buffer_GetPriority(IWineD3DBuffer *iface)
{ {
return resource_get_priority((IWineD3DResource *)iface); return resource_get_priority((IWineD3DResourceImpl *)iface);
} }
/* The caller provides a context and binds the buffer */ /* The caller provides a context and binds the buffer */
......
...@@ -233,8 +233,9 @@ static DWORD WINAPI IWineD3DCubeTextureImpl_SetPriority(IWineD3DCubeTexture *ifa ...@@ -233,8 +233,9 @@ static DWORD WINAPI IWineD3DCubeTextureImpl_SetPriority(IWineD3DCubeTexture *ifa
return resource_set_priority((IWineD3DResource *)iface, PriorityNew); return resource_set_priority((IWineD3DResource *)iface, PriorityNew);
} }
static DWORD WINAPI IWineD3DCubeTextureImpl_GetPriority(IWineD3DCubeTexture *iface) { static DWORD WINAPI IWineD3DCubeTextureImpl_GetPriority(IWineD3DCubeTexture *iface)
return resource_get_priority((IWineD3DResource *)iface); {
return resource_get_priority((IWineD3DResourceImpl *)iface);
} }
/* Do not call while under the GL lock. */ /* Do not call while under the GL lock. */
......
...@@ -259,11 +259,10 @@ DWORD resource_set_priority(IWineD3DResource *iface, DWORD PriorityNew) ...@@ -259,11 +259,10 @@ DWORD resource_set_priority(IWineD3DResource *iface, DWORD PriorityNew)
return PriorityOld; return PriorityOld;
} }
DWORD resource_get_priority(IWineD3DResource *iface) DWORD resource_get_priority(struct IWineD3DResourceImpl *resource)
{ {
IWineD3DResourceImpl *This = (IWineD3DResourceImpl *)iface; TRACE("resource %p, returning %u.\n", resource, resource->resource.priority);
TRACE("(%p) : returning %d\n", This, This->resource.priority ); return resource->resource.priority;
return This->resource.priority;
} }
WINED3DRESOURCETYPE resource_get_type(IWineD3DResource *iface) WINED3DRESOURCETYPE resource_get_type(IWineD3DResource *iface)
......
...@@ -132,8 +132,9 @@ DWORD WINAPI IWineD3DBaseSurfaceImpl_SetPriority(IWineD3DSurface *iface, DWORD ...@@ -132,8 +132,9 @@ DWORD WINAPI IWineD3DBaseSurfaceImpl_SetPriority(IWineD3DSurface *iface, DWORD
return resource_set_priority((IWineD3DResource *)iface, PriorityNew); return resource_set_priority((IWineD3DResource *)iface, PriorityNew);
} }
DWORD WINAPI IWineD3DBaseSurfaceImpl_GetPriority(IWineD3DSurface *iface) { DWORD WINAPI IWineD3DBaseSurfaceImpl_GetPriority(IWineD3DSurface *iface)
return resource_get_priority((IWineD3DResource *)iface); {
return resource_get_priority((IWineD3DResourceImpl *)iface);
} }
WINED3DRESOURCETYPE WINAPI IWineD3DBaseSurfaceImpl_GetType(IWineD3DSurface *iface) { WINED3DRESOURCETYPE WINAPI IWineD3DBaseSurfaceImpl_GetType(IWineD3DSurface *iface) {
......
...@@ -258,8 +258,9 @@ static DWORD WINAPI IWineD3DTextureImpl_SetPriority(IWineD3DTexture *iface, DWOR ...@@ -258,8 +258,9 @@ static DWORD WINAPI IWineD3DTextureImpl_SetPriority(IWineD3DTexture *iface, DWOR
return resource_set_priority((IWineD3DResource *)iface, PriorityNew); return resource_set_priority((IWineD3DResource *)iface, PriorityNew);
} }
static DWORD WINAPI IWineD3DTextureImpl_GetPriority(IWineD3DTexture *iface) { static DWORD WINAPI IWineD3DTextureImpl_GetPriority(IWineD3DTexture *iface)
return resource_get_priority((IWineD3DResource *)iface); {
return resource_get_priority((IWineD3DResourceImpl *)iface);
} }
/* Do not call while under the GL lock. */ /* Do not call while under the GL lock. */
......
...@@ -171,8 +171,9 @@ static DWORD WINAPI IWineD3DVolumeImpl_SetPriority(IWineD3DVolume *iface, DWORD ...@@ -171,8 +171,9 @@ static DWORD WINAPI IWineD3DVolumeImpl_SetPriority(IWineD3DVolume *iface, DWORD
return resource_set_priority((IWineD3DResource *)iface, PriorityNew); return resource_set_priority((IWineD3DResource *)iface, PriorityNew);
} }
static DWORD WINAPI IWineD3DVolumeImpl_GetPriority(IWineD3DVolume *iface) { static DWORD WINAPI IWineD3DVolumeImpl_GetPriority(IWineD3DVolume *iface)
return resource_get_priority((IWineD3DResource *)iface); {
return resource_get_priority((IWineD3DResourceImpl *)iface);
} }
/* Do not call while under the GL lock. */ /* Do not call while under the GL lock. */
......
...@@ -178,8 +178,9 @@ static DWORD WINAPI IWineD3DVolumeTextureImpl_SetPriority(IWineD3DVolumeTexture ...@@ -178,8 +178,9 @@ static DWORD WINAPI IWineD3DVolumeTextureImpl_SetPriority(IWineD3DVolumeTexture
return resource_set_priority((IWineD3DResource *)iface, PriorityNew); return resource_set_priority((IWineD3DResource *)iface, PriorityNew);
} }
static DWORD WINAPI IWineD3DVolumeTextureImpl_GetPriority(IWineD3DVolumeTexture *iface) { static DWORD WINAPI IWineD3DVolumeTextureImpl_GetPriority(IWineD3DVolumeTexture *iface)
return resource_get_priority((IWineD3DResource *)iface); {
return resource_get_priority((IWineD3DResourceImpl *)iface);
} }
static void WINAPI IWineD3DVolumeTextureImpl_PreLoad(IWineD3DVolumeTexture *iface) static void WINAPI IWineD3DVolumeTextureImpl_PreLoad(IWineD3DVolumeTexture *iface)
......
...@@ -1830,7 +1830,7 @@ typedef struct IWineD3DResourceImpl ...@@ -1830,7 +1830,7 @@ typedef struct IWineD3DResourceImpl
void resource_cleanup(struct IWineD3DResourceImpl *resource) DECLSPEC_HIDDEN; void resource_cleanup(struct IWineD3DResourceImpl *resource) DECLSPEC_HIDDEN;
HRESULT resource_free_private_data(struct IWineD3DResourceImpl *resource, REFGUID guid) DECLSPEC_HIDDEN; HRESULT resource_free_private_data(struct IWineD3DResourceImpl *resource, REFGUID guid) DECLSPEC_HIDDEN;
DWORD resource_get_priority(IWineD3DResource *iface) DECLSPEC_HIDDEN; DWORD resource_get_priority(struct IWineD3DResourceImpl *resource) DECLSPEC_HIDDEN;
HRESULT resource_get_private_data(struct IWineD3DResourceImpl *resource, REFGUID guid, HRESULT resource_get_private_data(struct IWineD3DResourceImpl *resource, REFGUID guid,
void *data, DWORD *data_size) DECLSPEC_HIDDEN; void *data, DWORD *data_size) DECLSPEC_HIDDEN;
HRESULT resource_init(struct IWineD3DResourceImpl *resource, WINED3DRESOURCETYPE resource_type, HRESULT resource_init(struct IWineD3DResourceImpl *resource, WINED3DRESOURCETYPE resource_type,
......
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