From 919d3ab9e426dd43c9634f20936e321d83fcfc03 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Wed, 7 Sep 2011 20:22:00 +0200 Subject: [PATCH] wined3d: Make the device parameter to wined3d_device_get_sampler_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 4a8b5c6740..1b722f54ab 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -2550,7 +2550,7 @@ HRESULT CDECL wined3d_device_set_sampler_state(struct wined3d_device *device, return WINED3D_OK; } -HRESULT CDECL wined3d_device_get_sampler_state(struct wined3d_device *device, +HRESULT CDECL wined3d_device_get_sampler_state(const struct wined3d_device *device, UINT sampler_idx, WINED3DSAMPLERSTATETYPE state, DWORD *value) { TRACE("device %p, sampler_idx %u, state %s, value %p.\n", diff --git a/include/wine/wined3d.h b/include/wine/wined3d.h index 2039398c4d..ddf6561855 100644 --- a/include/wine/wined3d.h +++ b/include/wine/wined3d.h @@ -2243,7 +2243,7 @@ HRESULT __cdecl wined3d_device_get_render_state(const struct wined3d_device *dev WINED3DRENDERSTATETYPE state, DWORD *value); HRESULT __cdecl wined3d_device_get_render_target(struct wined3d_device *device, UINT render_target_idx, struct wined3d_surface **render_target); -HRESULT __cdecl wined3d_device_get_sampler_state(struct wined3d_device *device, +HRESULT __cdecl wined3d_device_get_sampler_state(const struct wined3d_device *device, UINT sampler_idx, WINED3DSAMPLERSTATETYPE state, DWORD *value); HRESULT __cdecl wined3d_device_get_scissor_rect(struct wined3d_device *device, RECT *rect); BOOL __cdecl wined3d_device_get_software_vertex_processing(struct wined3d_device *device); -- 2.32.0.93.g670b81a890