[PATCH 1/5] wined3d: Make the context parameter to context_check_fbo_status() const.
Henri Verbeet
hverbeet at codeweavers.com
Wed Jun 29 16:14:11 CDT 2011
---
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;
--
1.7.3.4
More information about the wine-patches
mailing list