wined3d: Pass an IWineD3DResourceImpl pointer to resource_get_priority().
This commit is contained in:
parent
a80749fd57
commit
2d9748b1e3
|
@ -785,7 +785,7 @@ static DWORD STDMETHODCALLTYPE buffer_SetPriority(IWineD3DBuffer *iface, DWORD p
|
|||
|
||||
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 */
|
||||
|
|
|
@ -233,8 +233,9 @@ static DWORD WINAPI IWineD3DCubeTextureImpl_SetPriority(IWineD3DCubeTexture *ifa
|
|||
return resource_set_priority((IWineD3DResource *)iface, PriorityNew);
|
||||
}
|
||||
|
||||
static DWORD WINAPI IWineD3DCubeTextureImpl_GetPriority(IWineD3DCubeTexture *iface) {
|
||||
return resource_get_priority((IWineD3DResource *)iface);
|
||||
static DWORD WINAPI IWineD3DCubeTextureImpl_GetPriority(IWineD3DCubeTexture *iface)
|
||||
{
|
||||
return resource_get_priority((IWineD3DResourceImpl *)iface);
|
||||
}
|
||||
|
||||
/* Do not call while under the GL lock. */
|
||||
|
|
|
@ -259,11 +259,10 @@ DWORD resource_set_priority(IWineD3DResource *iface, DWORD PriorityNew)
|
|||
return PriorityOld;
|
||||
}
|
||||
|
||||
DWORD resource_get_priority(IWineD3DResource *iface)
|
||||
DWORD resource_get_priority(struct IWineD3DResourceImpl *resource)
|
||||
{
|
||||
IWineD3DResourceImpl *This = (IWineD3DResourceImpl *)iface;
|
||||
TRACE("(%p) : returning %d\n", This, This->resource.priority );
|
||||
return This->resource.priority;
|
||||
TRACE("resource %p, returning %u.\n", resource, resource->resource.priority);
|
||||
return resource->resource.priority;
|
||||
}
|
||||
|
||||
WINED3DRESOURCETYPE resource_get_type(IWineD3DResource *iface)
|
||||
|
|
|
@ -132,8 +132,9 @@ DWORD WINAPI IWineD3DBaseSurfaceImpl_SetPriority(IWineD3DSurface *iface, DWORD
|
|||
return resource_set_priority((IWineD3DResource *)iface, PriorityNew);
|
||||
}
|
||||
|
||||
DWORD WINAPI IWineD3DBaseSurfaceImpl_GetPriority(IWineD3DSurface *iface) {
|
||||
return resource_get_priority((IWineD3DResource *)iface);
|
||||
DWORD WINAPI IWineD3DBaseSurfaceImpl_GetPriority(IWineD3DSurface *iface)
|
||||
{
|
||||
return resource_get_priority((IWineD3DResourceImpl *)iface);
|
||||
}
|
||||
|
||||
WINED3DRESOURCETYPE WINAPI IWineD3DBaseSurfaceImpl_GetType(IWineD3DSurface *iface) {
|
||||
|
|
|
@ -258,8 +258,9 @@ static DWORD WINAPI IWineD3DTextureImpl_SetPriority(IWineD3DTexture *iface, DWOR
|
|||
return resource_set_priority((IWineD3DResource *)iface, PriorityNew);
|
||||
}
|
||||
|
||||
static DWORD WINAPI IWineD3DTextureImpl_GetPriority(IWineD3DTexture *iface) {
|
||||
return resource_get_priority((IWineD3DResource *)iface);
|
||||
static DWORD WINAPI IWineD3DTextureImpl_GetPriority(IWineD3DTexture *iface)
|
||||
{
|
||||
return resource_get_priority((IWineD3DResourceImpl *)iface);
|
||||
}
|
||||
|
||||
/* Do not call while under the GL lock. */
|
||||
|
|
|
@ -171,8 +171,9 @@ static DWORD WINAPI IWineD3DVolumeImpl_SetPriority(IWineD3DVolume *iface, DWORD
|
|||
return resource_set_priority((IWineD3DResource *)iface, PriorityNew);
|
||||
}
|
||||
|
||||
static DWORD WINAPI IWineD3DVolumeImpl_GetPriority(IWineD3DVolume *iface) {
|
||||
return resource_get_priority((IWineD3DResource *)iface);
|
||||
static DWORD WINAPI IWineD3DVolumeImpl_GetPriority(IWineD3DVolume *iface)
|
||||
{
|
||||
return resource_get_priority((IWineD3DResourceImpl *)iface);
|
||||
}
|
||||
|
||||
/* Do not call while under the GL lock. */
|
||||
|
|
|
@ -178,8 +178,9 @@ static DWORD WINAPI IWineD3DVolumeTextureImpl_SetPriority(IWineD3DVolumeTexture
|
|||
return resource_set_priority((IWineD3DResource *)iface, PriorityNew);
|
||||
}
|
||||
|
||||
static DWORD WINAPI IWineD3DVolumeTextureImpl_GetPriority(IWineD3DVolumeTexture *iface) {
|
||||
return resource_get_priority((IWineD3DResource *)iface);
|
||||
static DWORD WINAPI IWineD3DVolumeTextureImpl_GetPriority(IWineD3DVolumeTexture *iface)
|
||||
{
|
||||
return resource_get_priority((IWineD3DResourceImpl *)iface);
|
||||
}
|
||||
|
||||
static void WINAPI IWineD3DVolumeTextureImpl_PreLoad(IWineD3DVolumeTexture *iface)
|
||||
|
|
|
@ -1830,7 +1830,7 @@ typedef struct IWineD3DResourceImpl
|
|||
|
||||
void resource_cleanup(struct IWineD3DResourceImpl *resource) 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,
|
||||
void *data, DWORD *data_size) DECLSPEC_HIDDEN;
|
||||
HRESULT resource_init(struct IWineD3DResourceImpl *resource, WINED3DRESOURCETYPE resource_type,
|
||||
|
|
Loading…
Reference in New Issue