Henri Verbeet : wined3d: Make the surface parameter to context_surface_update() const.

Alexandre Julliard julliard at winehq.org
Fri Jul 1 14:11:02 CDT 2011


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

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Wed Jun 29 23:14:15 2011 +0200

wined3d: Make the surface parameter to context_surface_update() const.

---

 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])




More information about the wine-cvs mailing list