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

Alexandre Julliard julliard at winehq.org
Wed Jun 29 15:47:43 CDT 2011


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

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Wed Jun 29 12:33:54 2011 +0200

wined3d: Make the context parameter to context_attach_depth_stencil_fbo() 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 8902ac5..f52609c 100644
--- a/dlls/wined3d/context.c
+++ b/dlls/wined3d/context.c
@@ -112,7 +112,7 @@ static void context_destroy_fbo(struct wined3d_context *context, GLuint *fbo)
 }
 
 /* GL locking is done by the caller */
-void context_attach_depth_stencil_fbo(struct wined3d_context *context,
+void context_attach_depth_stencil_fbo(const struct wined3d_context *context,
         GLenum fbo_target, struct wined3d_surface *depth_stencil, BOOL use_render_buffer)
 {
     const struct wined3d_gl_info *gl_info = context->gl_info;
diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h
index a3e12ff..ceae2fd 100644
--- a/dlls/wined3d/wined3d_private.h
+++ b/dlls/wined3d/wined3d_private.h
@@ -1224,7 +1224,7 @@ BOOL context_apply_clear_state(struct wined3d_context *context, struct wined3d_d
 BOOL context_apply_draw_state(struct wined3d_context *context, struct wined3d_device *device) DECLSPEC_HIDDEN;
 void context_apply_fbo_state_blit(struct wined3d_context *context, GLenum target,
         struct wined3d_surface *render_target, struct wined3d_surface *depth_stencil, DWORD location) DECLSPEC_HIDDEN;
-void context_attach_depth_stencil_fbo(struct wined3d_context *context,
+void context_attach_depth_stencil_fbo(const struct wined3d_context *context,
         GLenum fbo_target, struct wined3d_surface *depth_stencil, BOOL use_render_buffer) DECLSPEC_HIDDEN;
 void context_bind_fbo(struct wined3d_context *context, GLenum target, GLuint *fbo) DECLSPEC_HIDDEN;
 void context_check_fbo_status(struct wined3d_context *context, GLenum target) DECLSPEC_HIDDEN;




More information about the wine-cvs mailing list