Henri Verbeet : wined3d: Make the device parameter to wined3d_device_get_vertex_declaration() const .
Alexandre Julliard
julliard at winehq.org
Fri Sep 9 10:56:45 CDT 2011
Module: wine
Branch: master
Commit: 31906458da4344cfa3df8192997d6e7faf0347de
URL: http://source.winehq.org/git/wine.git/?a=commit;h=31906458da4344cfa3df8192997d6e7faf0347de
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Thu Sep 8 23:50:38 2011 +0200
wined3d: Make the device parameter to wined3d_device_get_vertex_declaration() 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 ac609fd..1ee1fac 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -2636,7 +2636,7 @@ HRESULT CDECL wined3d_device_set_vertex_declaration(struct wined3d_device *devic
return WINED3D_OK;
}
-HRESULT CDECL wined3d_device_get_vertex_declaration(struct wined3d_device *device,
+HRESULT CDECL wined3d_device_get_vertex_declaration(const struct wined3d_device *device,
struct wined3d_vertex_declaration **declaration)
{
TRACE("device %p, declaration %p.\n", device, declaration);
diff --git a/include/wine/wined3d.h b/include/wine/wined3d.h
index b05acae..fddac2c 100644
--- a/include/wine/wined3d.h
+++ b/include/wine/wined3d.h
@@ -2262,7 +2262,7 @@ HRESULT __cdecl wined3d_device_get_texture_stage_state(struct wined3d_device *de
UINT stage, WINED3DTEXTURESTAGESTATETYPE state, DWORD *value);
HRESULT __cdecl wined3d_device_get_transform(const struct wined3d_device *device,
WINED3DTRANSFORMSTATETYPE state, WINED3DMATRIX *matrix);
-HRESULT __cdecl wined3d_device_get_vertex_declaration(struct wined3d_device *device,
+HRESULT __cdecl wined3d_device_get_vertex_declaration(const struct wined3d_device *device,
struct wined3d_vertex_declaration **declaration);
struct wined3d_shader * __cdecl wined3d_device_get_vertex_shader(struct wined3d_device *device);
HRESULT __cdecl wined3d_device_get_viewport(const struct wined3d_device *device, WINED3DVIEWPORT *viewport);
More information about the wine-cvs
mailing list