[PATCH 4/5] wined3d: Make the device parameter to wined3d_device_validate_device() const.

Henri Verbeet hverbeet at codeweavers.com
Tue Oct 11 10:24:54 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 54b8ed2..7bf5a1a 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -4511,7 +4511,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 5cd8009..a92bdf6 100644
--- a/include/wine/wined3d.h
+++ b/include/wine/wined3d.h
@@ -2353,7 +2353,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);

More information about the wine-patches mailing list