From b480211058c9e49c254b1352b4062d590b68f4b0 Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Mon, 26 Jun 2017 12:38:23 +1000 Subject: [PATCH] mesa: add copy_texture_sub_image_no_error() helper Reviewed-by: Samuel Pitoiset --- src/mesa/main/teximage.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index a0397472057..ac259859b1f 100644 --- a/src/mesa/main/teximage.c +++ b/src/mesa/main/teximage.c @@ -3783,6 +3783,23 @@ copy_texture_sub_image_err(struct gl_context *ctx, GLuint dims, } +static void +copy_texture_sub_image_no_error(struct gl_context *ctx, GLuint dims, + struct gl_texture_object *texObj, + GLenum target, GLint level, + GLint xoffset, GLint yoffset, GLint zoffset, + GLint x, GLint y, GLsizei width, GLsizei height) +{ + FLUSH_VERTICES(ctx, 0); + + if (ctx->NewState & NEW_COPY_TEX_STATE) + _mesa_update_state(ctx); + + copy_texture_sub_image(ctx, dims, texObj, target, level, xoffset, yoffset, + zoffset, x, y, width, height); +} + + /** * Implement the glCopyTexImage1/2D() functions. */ -- 2.30.2