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

Alexandre Julliard julliard at winehq.org
Wed Sep 7 12:35:27 CDT 2011


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

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Tue Sep  6 19:19:52 2011 +0200

wined3d: Make the device parameter to wined3d_device_get_render_state() 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 16faace..4a8b5c6 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -2500,7 +2500,7 @@ HRESULT CDECL wined3d_device_set_render_state(struct wined3d_device *device,
     return WINED3D_OK;
 }
 
-HRESULT CDECL wined3d_device_get_render_state(struct wined3d_device *device,
+HRESULT CDECL wined3d_device_get_render_state(const struct wined3d_device *device,
         WINED3DRENDERSTATETYPE state, DWORD *value)
 {
     TRACE("device %p, state %s (%#x), value %p.\n", device, debug_d3drenderstate(state), state, value);
diff --git a/include/wine/wined3d.h b/include/wine/wined3d.h
index 23e88d1..2039398 100644
--- a/include/wine/wined3d.h
+++ b/include/wine/wined3d.h
@@ -2239,7 +2239,7 @@ HRESULT __cdecl wined3d_device_get_ps_consts_i(struct wined3d_device *device,
         UINT start_register, int *constants, UINT vector4i_count);
 HRESULT __cdecl wined3d_device_get_raster_status(struct wined3d_device *device,
         UINT swapchain_idx, WINED3DRASTER_STATUS *raster_status);
-HRESULT __cdecl wined3d_device_get_render_state(struct wined3d_device *device,
+HRESULT __cdecl wined3d_device_get_render_state(const struct wined3d_device *device,
         WINED3DRENDERSTATETYPE state, DWORD *value);
 HRESULT __cdecl wined3d_device_get_render_target(struct wined3d_device *device,
         UINT render_target_idx, struct wined3d_surface **render_target);




More information about the wine-cvs mailing list