[Mesa-dev] [PATCH] meta: remove const qualifier on _mesa_meta_fb_tex_blit_begin()

Brian Paul brianp at vmware.com
Tue Jan 12 07:51:37 PST 2016


To silence a compiler warning about a const/non-const mismatch.
---
 src/mesa/drivers/common/meta.h      | 2 +-
 src/mesa/drivers/common/meta_blit.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mesa/drivers/common/meta.h b/src/mesa/drivers/common/meta.h
index d7d8fd3..3691e7d 100644
--- a/src/mesa/drivers/common/meta.h
+++ b/src/mesa/drivers/common/meta.h
@@ -453,7 +453,7 @@ _mesa_meta_in_progress(struct gl_context *ctx)
 }
 
 extern void
-_mesa_meta_fb_tex_blit_begin(const struct gl_context *ctx,
+_mesa_meta_fb_tex_blit_begin(struct gl_context *ctx,
                              struct fb_tex_blit_state *blit);
 
 extern void
diff --git a/src/mesa/drivers/common/meta_blit.c b/src/mesa/drivers/common/meta_blit.c
index 78434cf..b414dce 100644
--- a/src/mesa/drivers/common/meta_blit.c
+++ b/src/mesa/drivers/common/meta_blit.c
@@ -807,7 +807,7 @@ blitframebuffer_texture(struct gl_context *ctx,
 }
 
 void
-_mesa_meta_fb_tex_blit_begin(const struct gl_context *ctx,
+_mesa_meta_fb_tex_blit_begin(struct gl_context *ctx,
                              struct fb_tex_blit_state *blit)
 {
    /* None of the existing callers preinitialize fb_tex_blit_state to zeros,
-- 
1.9.1



More information about the mesa-dev mailing list