Henri Verbeet : wined3d: Make the declaration parameter to wined3d_device_process_vertices() const.

Alexandre Julliard julliard at winehq.org
Mon Sep 19 13:48:42 CDT 2011


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

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Sun Sep 18 21:05:30 2011 +0200

wined3d: Make the declaration parameter to wined3d_device_process_vertices() 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 7fd6eee..a585d25 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -3574,7 +3574,7 @@ static HRESULT process_vertices_strided(const struct wined3d_device *device, DWO
 /* Do not call while under the GL lock. */
 HRESULT CDECL wined3d_device_process_vertices(struct wined3d_device *device,
         UINT src_start_idx, UINT dst_idx, UINT vertex_count, struct wined3d_buffer *dst_buffer,
-        struct wined3d_vertex_declaration *declaration, DWORD flags, DWORD dst_fvf)
+        const struct wined3d_vertex_declaration *declaration, DWORD flags, DWORD dst_fvf)
 {
     struct wined3d_state *state = &device->stateBlock->state;
     BOOL vbo = FALSE, streamWasUP = state->user_stream;
diff --git a/include/wine/wined3d.h b/include/wine/wined3d.h
index 85f47b4..fbd5103 100644
--- a/include/wine/wined3d.h
+++ b/include/wine/wined3d.h
@@ -2282,7 +2282,7 @@ HRESULT __cdecl wined3d_device_present(struct wined3d_device *device, const RECT
         const RECT *dst_rect, HWND dst_window_override, const RGNDATA *dirty_region);
 HRESULT __cdecl wined3d_device_process_vertices(struct wined3d_device *device,
         UINT src_start_idx, UINT dst_idx, UINT vertex_count, struct wined3d_buffer *dst_buffer,
-        struct wined3d_vertex_declaration *declaration, DWORD flags, DWORD dst_fvf);
+        const struct wined3d_vertex_declaration *declaration, DWORD flags, DWORD dst_fvf);
 void __cdecl wined3d_device_release_focus_window(struct wined3d_device *device);
 HRESULT __cdecl wined3d_device_reset(struct wined3d_device *device,
         WINED3DPRESENT_PARAMETERS *present_parameters, wined3d_device_reset_cb callback);




More information about the wine-cvs mailing list