[PATCH 5/5] wined3d: Make the surface parameter to context_surface_update() const.
Henri Verbeet
hverbeet at codeweavers.com
Wed Jun 29 16:14:15 CDT 2011
---
dlls/wined3d/context.c | 2 +-
dlls/wined3d/wined3d_private.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c
index 0391672..ed80b78 100644
--- a/dlls/wined3d/context.c
+++ b/dlls/wined3d/context.c
@@ -641,7 +641,7 @@ void context_resource_unloaded(const struct wined3d_device *device,
}
}
-void context_surface_update(struct wined3d_context *context, struct wined3d_surface *surface)
+void context_surface_update(struct wined3d_context *context, const struct wined3d_surface *surface)
{
const struct wined3d_gl_info *gl_info = context->gl_info;
struct fbo_entry *entry = context->current_fbo;
diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h
index 4420e13..e8fddb7 100644
--- a/dlls/wined3d/wined3d_private.h
+++ b/dlls/wined3d/wined3d_private.h
@@ -1243,7 +1243,7 @@ void context_resource_unloaded(const struct wined3d_device *device,
BOOL context_set_current(struct wined3d_context *ctx) DECLSPEC_HIDDEN;
void context_set_draw_buffer(struct wined3d_context *context, GLenum buffer) DECLSPEC_HIDDEN;
void context_set_tls_idx(DWORD idx) DECLSPEC_HIDDEN;
-void context_surface_update(struct wined3d_context *context, struct wined3d_surface *surface) DECLSPEC_HIDDEN;
+void context_surface_update(struct wined3d_context *context, const struct wined3d_surface *surface) DECLSPEC_HIDDEN;
/* Macros for doing basic GPU detection based on opengl capabilities */
#define WINE_D3D6_CAPABLE(gl_info) (gl_info->supported[ARB_MULTITEXTURE])
--
1.7.3.4
More information about the wine-patches
mailing list