diff --git a/src/vrend_blitter.c b/src/vrend_blitter.c index b4530d5..dbea83c 100644 --- a/src/vrend_blitter.c +++ b/src/vrend_blitter.c @@ -696,8 +696,7 @@ static void calc_dst_deltas_from_src(const struct pipe_blit_info *info, } /* implement blitting using OpenGL. */ -void vrend_renderer_blit_gl(UNUSED struct vrend_context *ctx, - struct vrend_resource *src_res, +void vrend_renderer_blit_gl(struct vrend_resource *src_res, struct vrend_resource *dst_res, const struct pipe_blit_info *info, bool has_texture_srgb_decode, diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c index 39ea841..be36fbc 100644 --- a/src/vrend_renderer.c +++ b/src/vrend_renderer.c @@ -7417,7 +7417,7 @@ static void vrend_renderer_blit_int(struct vrend_context *ctx, if (use_gl) { VREND_DEBUG(dbg_blit, ctx, "BLIT_INT: use GL fallback\n"); - vrend_renderer_blit_gl(ctx, src_res, dst_res, info, + vrend_renderer_blit_gl(src_res, dst_res, info, has_feature(feat_texture_srgb_decode), has_feature(feat_srgb_write_control)); vrend_clicbs->make_current(ctx->sub->gl_context); diff --git a/src/vrend_renderer.h b/src/vrend_renderer.h index 51a4c3a..e6b26d9 100644 --- a/src/vrend_renderer.h +++ b/src/vrend_renderer.h @@ -409,8 +409,7 @@ boolean format_is_copy_compatible(enum pipe_format src, enum pipe_format dst, boolean allow_compressed); /* blitter interface */ -void vrend_renderer_blit_gl(struct vrend_context *ctx, - struct vrend_resource *src_res, +void vrend_renderer_blit_gl(struct vrend_resource *src_res, struct vrend_resource *dst_res, const struct pipe_blit_info *info, bool has_texture_srgb_decode,