wined3d: Make the device parameter to wined3d_device_get_ps_consts_b() const.
authorHenri Verbeet <hverbeet@codeweavers.com>
Wed, 14 Sep 2011 18:17:31 +0000 (20:17 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 15 Sep 2011 13:41:40 +0000 (15:41 +0200)
dlls/wined3d/device.c
include/wine/wined3d.h

index bb4969c6a9e58172076086c0432c16b838986869..0bcdf8d2cad3707637435465036769c8ff39fef9 100644 (file)
@@ -3117,7 +3117,7 @@ HRESULT CDECL wined3d_device_set_ps_consts_b(struct wined3d_device *device,
     return WINED3D_OK;
 }
 
-HRESULT CDECL wined3d_device_get_ps_consts_b(struct wined3d_device *device,
+HRESULT CDECL wined3d_device_get_ps_consts_b(const struct wined3d_device *device,
         UINT start_register, BOOL *constants, UINT bool_count)
 {
     UINT count = min(bool_count, MAX_CONST_B - start_register);
index 940246ca492714bad62bca9d5e91fc8e48eb656d..f439f73070a783eacc2dd22c0a35d5cc026859b8 100644 (file)
@@ -2231,7 +2231,7 @@ 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);
-HRESULT __cdecl wined3d_device_get_ps_consts_b(struct wined3d_device *device,
+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(struct wined3d_device *device,
         UINT start_register, float *constants, UINT vector4f_count);