From 00e62addc3041b111c77f65c4967a53a85eabd04 Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Fri, 15 Jun 2018 19:50:54 +0200 Subject: [PATCH] vrend: remove now useless warning messages for glGetTexImage Since the code path emmiting these warnings is no longer used, remove them and, because with this removal the ctx parameter is now unused, remove it as well. Reviewed-by: Gurchetan Singh Signed-off-by: Gert Wollny Signed-off-by: Jakob Bornecrantz --- src/vrend_renderer.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c index ec49b45..e3370d0 100644 --- a/src/vrend_renderer.c +++ b/src/vrend_renderer.c @@ -6070,8 +6070,7 @@ static void vrend_resource_buffer_copy(UNUSED struct vrend_context *ctx, glBindBuffer(GL_COPY_WRITE_BUFFER, 0); } -static void vrend_resource_copy_fallback(struct vrend_context *ctx, - struct vrend_resource *src_res, +static void vrend_resource_copy_fallback(struct vrend_resource *src_res, struct vrend_resource *dst_res, uint32_t dst_level, uint32_t dstx, uint32_t dsty, @@ -6158,15 +6157,11 @@ static void vrend_resource_copy_fallback(struct vrend_context *ctx, if (compressed) { if (vrend_state.have_arb_robustness) glGetnCompressedTexImageARB(ctarget, src_level, transfer_size, tptr + slice_offset); - else if (vrend_state.use_gles) - report_gles_missing_func(ctx, "glGetCompressedTexImage"); else glGetCompressedTexImage(ctarget, src_level, tptr + slice_offset); } else { if (vrend_state.have_arb_robustness) glGetnTexImageARB(ctarget, src_level, glformat, gltype, transfer_size, tptr + slice_offset); - else if (vrend_state.use_gles) - report_gles_missing_func(ctx, "glGetTexImage"); else glGetTexImage(ctarget, src_level, glformat, gltype, tptr + slice_offset); } @@ -6260,7 +6255,7 @@ void vrend_renderer_resource_copy_region(struct vrend_context *ctx, if (!vrend_format_can_render(src_res->base.format) || !vrend_format_can_render(dst_res->base.format)) { - vrend_resource_copy_fallback(ctx, src_res, dst_res, dst_level, dstx, + vrend_resource_copy_fallback(src_res, dst_res, dst_level, dstx, dsty, dstz, src_level, src_box); return;