[PATCH 5/5] wined3d: Make the device parameter to wined3d_device_get_primitive_type() const.

Henri Verbeet hverbeet at codeweavers.com
Sun Oct 9 12:01:22 CDT 2011


---
 dlls/wined3d/device.c  |    2 +-
 include/wine/wined3d.h |    3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index f291a7a..6f754f5 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -4109,7 +4109,7 @@ void CDECL wined3d_device_set_primitive_type(struct wined3d_device *device,
     device->updateStateBlock->state.gl_primitive_type = gl_primitive_type_from_d3d(primitive_type);
 }
 
-void CDECL wined3d_device_get_primitive_type(struct wined3d_device *device,
+void CDECL wined3d_device_get_primitive_type(const struct wined3d_device *device,
         WINED3DPRIMITIVETYPE *primitive_type)
 {
     TRACE("device %p, primitive_type %p\n", device, primitive_type);
diff --git a/include/wine/wined3d.h b/include/wine/wined3d.h
index 8a38668..eb270e7 100644
--- a/include/wine/wined3d.h
+++ b/include/wine/wined3d.h
@@ -2230,7 +2230,8 @@ float __cdecl wined3d_device_get_npatch_mode(struct wined3d_device *device);
 HRESULT __cdecl wined3d_device_get_palette_entries(struct wined3d_device *device,
         UINT palette_idx, PALETTEENTRY *entries);
 struct wined3d_shader * __cdecl wined3d_device_get_pixel_shader(const struct wined3d_device *device);
-void __cdecl wined3d_device_get_primitive_type(struct wined3d_device *device, WINED3DPRIMITIVETYPE *primitive_topology);
+void __cdecl wined3d_device_get_primitive_type(const struct wined3d_device *device,
+        WINED3DPRIMITIVETYPE *primitive_topology);
 HRESULT __cdecl wined3d_device_get_ps_consts_b(const struct wined3d_device *device,
         UINT start_register, BOOL *constants, UINT bool_count);
 HRESULT __cdecl wined3d_device_get_ps_consts_f(const struct wined3d_device *device,
-- 
1.7.3.4




More information about the wine-patches mailing list