Henri Verbeet : wined3d: Make the device parameter to wined3d_device_get_texture() const.

Alexandre Julliard julliard at winehq.org
Tue Sep 20 13:08:34 CDT 2011


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

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Mon Sep 19 21:50:26 2011 +0200

wined3d: Make the device parameter to wined3d_device_get_texture() 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 fe1b8a4..6d6f85d 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -3863,7 +3863,7 @@ HRESULT CDECL wined3d_device_set_texture(struct wined3d_device *device,
     return WINED3D_OK;
 }
 
-HRESULT CDECL wined3d_device_get_texture(struct wined3d_device *device,
+HRESULT CDECL wined3d_device_get_texture(const struct wined3d_device *device,
         UINT stage, struct wined3d_texture **texture)
 {
     TRACE("device %p, stage %u, texture %p.\n", device, stage, texture);
diff --git a/include/wine/wined3d.h b/include/wine/wined3d.h
index ed62b08..3edbfde 100644
--- a/include/wine/wined3d.h
+++ b/include/wine/wined3d.h
@@ -2256,7 +2256,7 @@ HRESULT __cdecl wined3d_device_get_surface_from_dc(struct wined3d_device *device
 HRESULT __cdecl wined3d_device_get_swapchain(const struct wined3d_device *device,
         UINT swapchain_idx, struct wined3d_swapchain **swapchain);
 UINT __cdecl wined3d_device_get_swapchain_count(const struct wined3d_device *device);
-HRESULT __cdecl wined3d_device_get_texture(struct wined3d_device *device,
+HRESULT __cdecl wined3d_device_get_texture(const struct wined3d_device *device,
         UINT stage, struct wined3d_texture **texture);
 HRESULT __cdecl wined3d_device_get_texture_stage_state(const struct wined3d_device *device,
         UINT stage, WINED3DTEXTURESTAGESTATETYPE state, DWORD *value);




More information about the wine-cvs mailing list