[PATCH 5/5] wined3d: Make the device parameter to wined3d_device_get_texture_stage_state() const.
Henri Verbeet
hverbeet at codeweavers.com
Sun Sep 18 14:05:31 CDT 2011
---
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 a585d25..fe1b8a4 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -3738,7 +3738,7 @@ HRESULT CDECL wined3d_device_set_texture_stage_state(struct wined3d_device *devi
return WINED3D_OK;
}
-HRESULT CDECL wined3d_device_get_texture_stage_state(struct wined3d_device *device,
+HRESULT CDECL wined3d_device_get_texture_stage_state(const struct wined3d_device *device,
UINT stage, WINED3DTEXTURESTAGESTATETYPE state, DWORD *value)
{
TRACE("device %p, stage %u, state %s, value %p.\n",
diff --git a/include/wine/wined3d.h b/include/wine/wined3d.h
index fbd5103..ed62b08 100644
--- a/include/wine/wined3d.h
+++ b/include/wine/wined3d.h
@@ -2258,7 +2258,7 @@ HRESULT __cdecl wined3d_device_get_swapchain(const struct wined3d_device *device
UINT __cdecl wined3d_device_get_swapchain_count(const struct wined3d_device *device);
HRESULT __cdecl wined3d_device_get_texture(struct wined3d_device *device,
UINT stage, struct wined3d_texture **texture);
-HRESULT __cdecl wined3d_device_get_texture_stage_state(struct wined3d_device *device,
+HRESULT __cdecl wined3d_device_get_texture_stage_state(const struct wined3d_device *device,
UINT stage, WINED3DTEXTURESTAGESTATETYPE state, DWORD *value);
HRESULT __cdecl wined3d_device_get_transform(const struct wined3d_device *device,
WINED3DTRANSFORMSTATETYPE state, WINED3DMATRIX *matrix);
--
1.7.3.4
More information about the wine-patches
mailing list