[PATCH 4/5] wined3d: Make the declaration parameter to wined3d_device_process_vertices() const.
Henri Verbeet
hverbeet at codeweavers.com
Sun Sep 18 14:05:30 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 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);
--
1.7.3.4
More information about the wine-patches
mailing list