From e272e59e4052b1522fb075d3ffa1fc0e2cbe23ee Mon Sep 17 00:00:00 2001 From: Pierre-Eric Pelloux-Prayer Date: Fri, 17 Mar 2023 13:57:00 +0100 Subject: [PATCH] mesa: fix CopyImageSubDataOES with GL_TEXTURE_EXTERNAL_OES MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit GL_TEXTURE_EXTERNAL_OES is allowed on GLES (any version) and glCopyImageSubDataOES is implemented as an alias of CopyImageSubData. Reviewed-by: Marek Olšák Part-of: --- 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 327ec8d..3d0d8af 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, -- 2.7.4