Henri Verbeet : wined3d: Make the device parameter to wined3d_device_get_render_target() const.
Alexandre Julliard
julliard at winehq.org
Mon Oct 17 13:08:53 CDT 2011
Module: wine
Branch: master
Commit: ebbd5ecf7c41a0a9afde070a5e2341a61e439de9
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ebbd5ecf7c41a0a9afde070a5e2341a61e439de9
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Sun Oct 16 21:55:32 2011 +0200
wined3d: Make the device parameter to wined3d_device_get_render_target() 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 20bf808..c56dfe5 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -4939,7 +4939,7 @@ void CDECL wined3d_device_clear_rendertarget_view(struct wined3d_device *device,
if (FAILED(hr)) ERR("Color fill failed, hr %#x.\n", hr);
}
-HRESULT CDECL wined3d_device_get_render_target(struct wined3d_device *device,
+HRESULT CDECL wined3d_device_get_render_target(const struct wined3d_device *device,
UINT render_target_idx, struct wined3d_surface **render_target)
{
TRACE("device %p, render_target_idx %u, render_target %p.\n",
diff --git a/include/wine/wined3d.h b/include/wine/wined3d.h
index e466400..b93bfb2 100644
--- a/include/wine/wined3d.h
+++ b/include/wine/wined3d.h
@@ -2238,7 +2238,7 @@ HRESULT __cdecl wined3d_device_get_raster_status(const struct wined3d_device *de
UINT swapchain_idx, WINED3DRASTER_STATUS *raster_status);
HRESULT __cdecl wined3d_device_get_render_state(const struct wined3d_device *device,
WINED3DRENDERSTATETYPE state, DWORD *value);
-HRESULT __cdecl wined3d_device_get_render_target(struct wined3d_device *device,
+HRESULT __cdecl wined3d_device_get_render_target(const struct wined3d_device *device,
UINT render_target_idx, struct wined3d_surface **render_target);
HRESULT __cdecl wined3d_device_get_sampler_state(const struct wined3d_device *device,
UINT sampler_idx, WINED3DSAMPLERSTATETYPE state, DWORD *value);
More information about the wine-cvs
mailing list