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

Alexandre Julliard julliard at winehq.org
Tue Oct 11 14:03:39 CDT 2011

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

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Tue Oct 11 17:24:54 2011 +0200

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 862f1f6..6e8eb2d 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 d8658de..3dec8ba 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);

More information about the wine-cvs mailing list