Henri Verbeet : wined3d: Make the context parameter to isStateDirty() const .

Alexandre Julliard julliard at winehq.org
Wed Jun 22 11:48:40 CDT 2011


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

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Tue Jun 21 19:50:10 2011 +0200

wined3d: Make the context parameter to isStateDirty() const.

---

 dlls/wined3d/wined3d_private.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h
index e6e4aac..c35f51e 100644
--- a/dlls/wined3d/wined3d_private.h
+++ b/dlls/wined3d/wined3d_private.h
@@ -1805,7 +1805,7 @@ void device_update_stream_info(struct wined3d_device *device, const struct wined
 void device_update_tex_unit_map(struct wined3d_device *device) DECLSPEC_HIDDEN;
 void device_invalidate_state(const struct wined3d_device *device, DWORD state) DECLSPEC_HIDDEN;
 
-static inline BOOL isStateDirty(struct wined3d_context *context, DWORD state)
+static inline BOOL isStateDirty(const struct wined3d_context *context, DWORD state)
 {
     DWORD idx = state / (sizeof(*context->isStateDirty) * CHAR_BIT);
     BYTE shift = state & ((sizeof(*context->isStateDirty) * CHAR_BIT) - 1);




More information about the wine-cvs mailing list