Module: Mesa Branch: main Commit: e272e59e4052b1522fb075d3ffa1fc0e2cbe23ee URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e272e59e4052b1522fb075d3ffa1fc0e2cbe23ee
Author: Pierre-Eric Pelloux-Prayer <[email protected]> Date: Fri Mar 17 13:57:00 2023 +0100 mesa: fix CopyImageSubDataOES with GL_TEXTURE_EXTERNAL_OES GL_TEXTURE_EXTERNAL_OES is allowed on GLES (any version) and glCopyImageSubDataOES is implemented as an alias of CopyImageSubData. Reviewed-by: Marek Olšák <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21984> --- src/mesa/main/copyimage.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mesa/main/copyimage.c b/src/mesa/main/copyimage.c index 327ec8d07c1..3d0d8af6946 100644 --- a/src/mesa/main/copyimage.c +++ b/src/mesa/main/copyimage.c @@ -100,6 +100,9 @@ prepare_target_err(struct gl_context *ctx, GLuint name, GLenum target, break; case GL_TEXTURE_EXTERNAL_OES: /* Only exists in ES */ + if (_mesa_is_gles(ctx)) + break; + FALLTHROUGH; case GL_TEXTURE_BUFFER: default: _mesa_error(ctx, GL_INVALID_ENUM,
