[PATCH 5/5] wined3d: Make the context parameter to isStateDirty() const.
Henri Verbeet
hverbeet at codeweavers.com
Tue Jun 21 12:50:10 CDT 2011
---
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);
--
1.7.3.4
More information about the wine-patches
mailing list