Mesa (master): mesa: add copy_texture_sub_image_no_error() helper
Timothy Arceri
tarceri at kemper.freedesktop.org
Mon Jun 26 22:15:22 UTC 2017
Module: Mesa
Branch: master
Commit: b480211058c9e49c254b1352b4062d590b68f4b0
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b480211058c9e49c254b1352b4062d590b68f4b0
Author: Timothy Arceri <tarceri at itsqueeze.com>
Date: Mon Jun 26 12:38:23 2017 +1000
mesa: add copy_texture_sub_image_no_error() helper
Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
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 a039747205..ac259859b1 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.
*/
More information about the mesa-commit
mailing list