Commit 29c2bb54 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

wined3d: Set resource's priority field's type as unsigned int.

parent 40179643
......@@ -265,9 +265,9 @@ void resource_unload(struct wined3d_resource *resource)
ERR("Resource %p is being unloaded while mapped.\n", resource);
}
DWORD CDECL wined3d_resource_set_priority(struct wined3d_resource *resource, DWORD priority)
unsigned int CDECL wined3d_resource_set_priority(struct wined3d_resource *resource, unsigned int priority)
{
DWORD prev;
unsigned int prev;
if (!(resource->usage & WINED3DUSAGE_MANAGED))
{
......@@ -281,7 +281,7 @@ DWORD CDECL wined3d_resource_set_priority(struct wined3d_resource *resource, DWO
return prev;
}
DWORD CDECL wined3d_resource_get_priority(const struct wined3d_resource *resource)
unsigned int CDECL wined3d_resource_get_priority(const struct wined3d_resource *resource)
{
TRACE("resource %p, returning %u.\n", resource, resource->priority);
return resource->priority;
......
......@@ -4424,7 +4424,7 @@ struct wined3d_resource
UINT height;
UINT depth;
UINT size;
DWORD priority;
unsigned int priority;
void *heap_memory;
uint32_t pin_sysmem : 1;
......
......@@ -2675,12 +2675,12 @@ ULONG __cdecl wined3d_rasterizer_state_incref(struct wined3d_rasterizer_state *s
void __cdecl wined3d_resource_get_desc(const struct wined3d_resource *resource,
struct wined3d_resource_desc *desc);
void * __cdecl wined3d_resource_get_parent(const struct wined3d_resource *resource);
DWORD __cdecl wined3d_resource_get_priority(const struct wined3d_resource *resource);
unsigned int __cdecl wined3d_resource_get_priority(const struct wined3d_resource *resource);
HRESULT __cdecl wined3d_resource_map(struct wined3d_resource *resource, unsigned int sub_resource_idx,
struct wined3d_map_desc *map_desc, const struct wined3d_box *box, uint32_t flags);
void __cdecl wined3d_resource_preload(struct wined3d_resource *resource);
void __cdecl wined3d_resource_set_parent(struct wined3d_resource *resource, void *parent);
DWORD __cdecl wined3d_resource_set_priority(struct wined3d_resource *resource, DWORD priority);
unsigned int __cdecl wined3d_resource_set_priority(struct wined3d_resource *resource, unsigned int priority);
HRESULT __cdecl wined3d_resource_unmap(struct wined3d_resource *resource, unsigned int sub_resource_idx);
HRESULT __cdecl wined3d_rendertarget_view_create(const struct wined3d_view_desc *desc,
......
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