wined3d: Make the resource parameter to wined3d_resource_get_decompress_format() const.
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
f9d14d6713
commit
db5f14e411
|
@ -478,7 +478,7 @@ void wined3d_resource_update_draw_binding(struct wined3d_resource *resource)
|
|||
}
|
||||
}
|
||||
|
||||
const struct wined3d_format *wined3d_resource_get_decompress_format(struct wined3d_resource *resource)
|
||||
const struct wined3d_format *wined3d_resource_get_decompress_format(const struct wined3d_resource *resource)
|
||||
{
|
||||
const struct wined3d_adapter *adapter = resource->device->adapter;
|
||||
if (resource->format_flags & (WINED3DFMT_FLAG_SRGB_READ | WINED3DFMT_FLAG_SRGB_WRITE)
|
||||
|
|
|
@ -3125,7 +3125,7 @@ void resource_unload(struct wined3d_resource *resource) DECLSPEC_HIDDEN;
|
|||
BOOL wined3d_resource_allocate_sysmem(struct wined3d_resource *resource) DECLSPEC_HIDDEN;
|
||||
void wined3d_resource_free_sysmem(struct wined3d_resource *resource) DECLSPEC_HIDDEN;
|
||||
const struct wined3d_format *wined3d_resource_get_decompress_format(
|
||||
struct wined3d_resource *resource) DECLSPEC_HIDDEN;
|
||||
const struct wined3d_resource *resource) DECLSPEC_HIDDEN;
|
||||
GLbitfield wined3d_resource_gl_map_flags(DWORD d3d_flags) DECLSPEC_HIDDEN;
|
||||
GLenum wined3d_resource_gl_legacy_map_flags(DWORD d3d_flags) DECLSPEC_HIDDEN;
|
||||
BOOL wined3d_resource_is_offscreen(struct wined3d_resource *resource) DECLSPEC_HIDDEN;
|
||||
|
|
Loading…
Reference in New Issue