Henri Verbeet : wined3d: Make the device parameter to wined3d_device_get_depth_stencil() const.
Alexandre Julliard
julliard at winehq.org
Mon Oct 17 13:08:53 CDT 2011
Module: wine
Branch: master
Commit: fcd1de2b09b11ce8fb67cd3457e7448b04b6b81c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=fcd1de2b09b11ce8fb67cd3457e7448b04b6b81c
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Sun Oct 16 21:55:33 2011 +0200
wined3d: Make the device parameter to wined3d_device_get_depth_stencil() const.
---
dlls/wined3d/device.c | 3 ++-
include/wine/wined3d.h | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index c56dfe5..10ea92d 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -4962,7 +4962,8 @@ HRESULT CDECL wined3d_device_get_render_target(const struct wined3d_device *devi
return WINED3D_OK;
}
-HRESULT CDECL wined3d_device_get_depth_stencil(struct wined3d_device *device, struct wined3d_surface **depth_stencil)
+HRESULT CDECL wined3d_device_get_depth_stencil(const struct wined3d_device *device,
+ struct wined3d_surface **depth_stencil)
{
TRACE("device %p, depth_stencil %p.\n", device, depth_stencil);
diff --git a/include/wine/wined3d.h b/include/wine/wined3d.h
index b93bfb2..7e382e1 100644
--- a/include/wine/wined3d.h
+++ b/include/wine/wined3d.h
@@ -2211,7 +2211,7 @@ HRESULT __cdecl wined3d_device_get_clip_plane(const struct wined3d_device *devic
HRESULT __cdecl wined3d_device_get_clip_status(const struct wined3d_device *device, WINED3DCLIPSTATUS *clip_status);
HRESULT __cdecl wined3d_device_get_creation_parameters(struct wined3d_device *device,
WINED3DDEVICE_CREATION_PARAMETERS *creation_parameters);
-HRESULT __cdecl wined3d_device_get_depth_stencil(struct wined3d_device *device,
+HRESULT __cdecl wined3d_device_get_depth_stencil(const struct wined3d_device *device,
struct wined3d_surface **depth_stencil);
HRESULT __cdecl wined3d_device_get_device_caps(const struct wined3d_device *device, WINED3DCAPS *caps);
HRESULT __cdecl wined3d_device_get_display_mode(const struct wined3d_device *device,
More information about the wine-cvs
mailing list