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

Alexandre Julliard julliard at winehq.org
Wed Jul 13 12:16:32 CDT 2011


Module: wine
Branch: master
Commit: b2d32a496653b9e1d7f20ba103bb39f645e2ed4b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b2d32a496653b9e1d7f20ba103bb39f645e2ed4b

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Tue Jul 12 21:17:45 2011 +0200

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

---

 dlls/wined3d/volume.c          |    2 +-
 dlls/wined3d/wined3d_private.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/wined3d/volume.c b/dlls/wined3d/volume.c
index 8803770..e7fdce8 100644
--- a/dlls/wined3d/volume.c
+++ b/dlls/wined3d/volume.c
@@ -89,7 +89,7 @@ void volume_set_container(struct wined3d_volume *volume, struct wined3d_texture
 }
 
 /* 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_format *format = volume->resource.format;
diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h
index 682c21b..20f217b 100644
--- a/dlls/wined3d/wined3d_private.h
+++ b/dlls/wined3d/wined3d_private.h
@@ -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_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;
 
 /*****************************************************************************




More information about the wine-cvs mailing list