Henri Verbeet : wined3d: Make the device parameter to wined3d_device_get_material() const.

Alexandre Julliard julliard at winehq.org
Mon Sep 5 13:26:19 CDT 2011


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

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Sun Sep  4 22:43:52 2011 +0200

wined3d: Make the device parameter to wined3d_device_get_material() const.

---

 dlls/wined3d/device.c  |    2 +-
 include/wine/wined3d.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 6b74a82..966beb5 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -2336,7 +2336,7 @@ HRESULT CDECL wined3d_device_set_material(struct wined3d_device *device, const W
     return WINED3D_OK;
 }
 
-HRESULT CDECL wined3d_device_get_material(struct wined3d_device *device, WINED3DMATERIAL *material)
+HRESULT CDECL wined3d_device_get_material(const struct wined3d_device *device, WINED3DMATERIAL *material)
 {
     TRACE("device %p, material %p.\n", device, material);
 
diff --git a/include/wine/wined3d.h b/include/wine/wined3d.h
index 6f7503c..f25a0f5 100644
--- a/include/wine/wined3d.h
+++ b/include/wine/wined3d.h
@@ -2224,7 +2224,7 @@ void __cdecl wined3d_device_get_gamma_ramp(struct wined3d_device *device, UINT s
 HRESULT __cdecl wined3d_device_get_index_buffer(struct wined3d_device *device, struct wined3d_buffer **index_buffer);
 HRESULT __cdecl wined3d_device_get_light(const struct wined3d_device *device, UINT light_idx, WINED3DLIGHT *light);
 HRESULT __cdecl wined3d_device_get_light_enable(const struct wined3d_device *device, UINT light_idx, BOOL *enable);
-HRESULT __cdecl wined3d_device_get_material(struct wined3d_device *device, WINED3DMATERIAL *material);
+HRESULT __cdecl wined3d_device_get_material(const struct wined3d_device *device, WINED3DMATERIAL *material);
 float __cdecl wined3d_device_get_npatch_mode(struct wined3d_device *device);
 HRESULT __cdecl wined3d_device_get_palette_entries(struct wined3d_device *device,
         UINT palette_idx, PALETTEENTRY *entries);




More information about the wine-cvs mailing list