Henri Verbeet : wined3d: Make the rt parameter to surface_set_compatible_renderbuffer() const.

Alexandre Julliard julliard at winehq.org
Fri Jul 8 11:23:41 CDT 2011


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

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Thu Jul  7 21:01:35 2011 +0200

wined3d: Make the rt parameter to surface_set_compatible_renderbuffer() const.

---

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

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index d44904d..65ab767 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -2349,7 +2349,7 @@ static void surface_allocate_surface(struct wined3d_surface *surface, const stru
  * render target dimensions. With FBOs, the dimensions have to be an exact match. */
 /* TODO: We should synchronize the renderbuffer's content with the texture's content. */
 /* GL locking is done by the caller */
-void surface_set_compatible_renderbuffer(struct wined3d_surface *surface, struct wined3d_surface *rt)
+void surface_set_compatible_renderbuffer(struct wined3d_surface *surface, const struct wined3d_surface *rt)
 {
     const struct wined3d_gl_info *gl_info = &surface->resource.device->adapter->gl_info;
     struct wined3d_renderbuffer_entry *entry;
diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h
index 535e2d3..5e7930a 100644
--- a/dlls/wined3d/wined3d_private.h
+++ b/dlls/wined3d/wined3d_private.h
@@ -2080,7 +2080,8 @@ void surface_modify_ds_location(struct wined3d_surface *surface, DWORD location,
 void surface_modify_location(struct wined3d_surface *surface, DWORD location, BOOL persistent) DECLSPEC_HIDDEN;
 void surface_prepare_texture(struct wined3d_surface *surface,
         const struct wined3d_gl_info *gl_info, BOOL srgb) DECLSPEC_HIDDEN;
-void surface_set_compatible_renderbuffer(struct wined3d_surface *surface, struct wined3d_surface *rt) DECLSPEC_HIDDEN;
+void surface_set_compatible_renderbuffer(struct wined3d_surface *surface,
+        const struct wined3d_surface *rt) DECLSPEC_HIDDEN;
 void surface_set_container(struct wined3d_surface *surface,
         enum wined3d_container_type type, void *container) DECLSPEC_HIDDEN;
 void surface_set_texture_name(struct wined3d_surface *surface, GLuint name, BOOL srgb_name) DECLSPEC_HIDDEN;




More information about the wine-cvs mailing list