Commit b2d32a49 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Make the volume parameter to volume_load() const.

parent 1791a5af
...@@ -89,7 +89,7 @@ void volume_set_container(struct wined3d_volume *volume, struct wined3d_texture ...@@ -89,7 +89,7 @@ void volume_set_container(struct wined3d_volume *volume, struct wined3d_texture
} }
/* Context activation is done by the caller. */ /* Context activation is done by the caller. */
void volume_load(struct wined3d_volume *volume, UINT level, BOOL srgb_mode) void volume_load(const struct wined3d_volume *volume, UINT level, BOOL srgb_mode)
{ {
const struct wined3d_gl_info *gl_info = &volume->resource.device->adapter->gl_info; const struct wined3d_gl_info *gl_info = &volume->resource.device->adapter->gl_info;
const struct wined3d_format *format = volume->resource.format; const struct wined3d_format *format = volume->resource.format;
......
...@@ -1920,7 +1920,7 @@ static inline struct wined3d_volume *volume_from_resource(struct wined3d_resourc ...@@ -1920,7 +1920,7 @@ static inline struct wined3d_volume *volume_from_resource(struct wined3d_resourc
} }
void volume_add_dirty_box(struct wined3d_volume *volume, const WINED3DBOX *dirty_box) DECLSPEC_HIDDEN; void volume_add_dirty_box(struct wined3d_volume *volume, const WINED3DBOX *dirty_box) DECLSPEC_HIDDEN;
void volume_load(struct wined3d_volume *volume, UINT level, BOOL srgb_mode) DECLSPEC_HIDDEN; void volume_load(const struct wined3d_volume *volume, UINT level, BOOL srgb_mode) DECLSPEC_HIDDEN;
void volume_set_container(struct wined3d_volume *volume, struct wined3d_texture *container) DECLSPEC_HIDDEN; void volume_set_container(struct wined3d_volume *volume, struct wined3d_texture *container) DECLSPEC_HIDDEN;
/***************************************************************************** /*****************************************************************************
......
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