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

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


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

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

wined3d: Make the context parameter to context_check_fbo_status() const.

---

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

diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c
index f52609c..51a77ef 100644
--- a/dlls/wined3d/context.c
+++ b/dlls/wined3d/context.c
@@ -219,7 +219,7 @@ static void context_attach_surface_fbo(const struct wined3d_context *context,
 }
 
 /* GL locking is done by the caller */
-void context_check_fbo_status(struct wined3d_context *context, GLenum target)
+void context_check_fbo_status(const struct wined3d_context *context, GLenum target)
 {
     const struct wined3d_gl_info *gl_info = context->gl_info;
     GLenum status;
@@ -233,7 +233,7 @@ void context_check_fbo_status(struct wined3d_context *context, GLenum target)
     }
     else
     {
-        struct wined3d_surface *attachment;
+        const struct wined3d_surface *attachment;
         unsigned int i;
 
         FIXME("FBO status %s (%#x)\n", debug_fbostatus(status), status);
diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h
index ceae2fd..81b5119 100644
--- a/dlls/wined3d/wined3d_private.h
+++ b/dlls/wined3d/wined3d_private.h
@@ -1227,7 +1227,7 @@ void context_apply_fbo_state_blit(struct wined3d_context *context, GLenum target
 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;
+void context_check_fbo_status(const struct wined3d_context *context, GLenum target) DECLSPEC_HIDDEN;
 struct wined3d_context *context_create(struct wined3d_swapchain *swapchain, struct wined3d_surface *target,
         const struct wined3d_format *ds_format) DECLSPEC_HIDDEN;
 void context_destroy(struct wined3d_device *device, struct wined3d_context *context) DECLSPEC_HIDDEN;




More information about the wine-cvs mailing list