From dd2378cbf2002c00e5450f38a44f3a059c9a8295 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Tue, 11 Oct 2011 17:24:54 +0200 Subject: [PATCH] wined3d: Make the device parameter to wined3d_device_validate_device() 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 862f1f606f2..6e8eb2da099 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -4473,7 +4473,7 @@ HRESULT CDECL wined3d_device_get_front_buffer_data(const struct wined3d_device * return hr; } -HRESULT CDECL wined3d_device_validate_device(struct wined3d_device *device, DWORD *num_passes) +HRESULT CDECL wined3d_device_validate_device(const struct wined3d_device *device, DWORD *num_passes) { const struct wined3d_state *state = &device->stateBlock->state; struct wined3d_texture *texture; diff --git a/include/wine/wined3d.h b/include/wine/wined3d.h index d8658de5364..3dec8ba4c8d 100644 --- a/include/wine/wined3d.h +++ b/include/wine/wined3d.h @@ -2346,7 +2346,7 @@ HRESULT __cdecl wined3d_device_update_surface(struct wined3d_device *device, str const RECT *src_rect, struct wined3d_surface *dst_surface, const POINT *dst_point); HRESULT __cdecl wined3d_device_update_texture(struct wined3d_device *device, struct wined3d_texture *src_texture, struct wined3d_texture *dst_texture); -HRESULT __cdecl wined3d_device_validate_device(struct wined3d_device *device, DWORD *num_passes); +HRESULT __cdecl wined3d_device_validate_device(const struct wined3d_device *device, DWORD *num_passes); HRESULT __cdecl wined3d_palette_create(struct wined3d_device *device, DWORD flags, const PALETTEENTRY *entries, void *parent, struct wined3d_palette **palette);